Function at 0x496c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496ef3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov esi, eax
mov byte [esi + 4], 0x30
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x11]
mov byte [esi + 6], al
xor edx, edx
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 2
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov edx, dword [edx + 4]
call fcn.004044ec
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.0045cde4
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x30]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00495f38
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.00497fd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.00479f00
test eax, eax
jle 0x496d41
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
push 0xa1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, ebx
call fcn.00497fd8
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
mov byte [ebx + 4], 0x30
xor edx, edx
mov eax, ebx
call fcn.0045dae4
mov edx, eax
mov eax, ebx
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x1c]
mov eax, edi
call fcn.0045cde4
mov dl, 1
mov eax, ebx
call fcn.0045dae4
mov edx, eax
mov eax, ebx
call fcn.0045db88
mov ebx, eax
mov byte [ebx + 4], 0xa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00497890
dec eax
jg 0x496dd4
xor edx, edx
mov eax, ebx
call fcn.0045dae4
mov edx, eax
mov eax, ebx
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00497898
mov edx, dword [edi + 0x20]
call fcn.0045ec88
jmp 0x496e3d
mov dl, 1
mov eax, ebx
call fcn.0045dae4
mov edx, eax
mov eax, ebx
call fcn.0045db88
mov ebx, eax
mov byte [ebx + 4], 0x24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00497890
dec eax
test eax, eax
jl 0x496e3d
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor edx, edx
mov eax, ebx
call fcn.0045dae4
mov edx, eax
mov eax, ebx
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
call fcn.0049787c
mov edx, dword [edi + 0x20]
call fcn.0045ec88
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x496e07
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
call fcn.00479f00
test eax, eax
jle 0x496e79
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
mov cl, 0x31
mov eax, ebx
call fcn.00479fbc
mov byte [ebx + 4], 0xa2
xor edx, edx
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov edi, eax
mov byte [edi + 4], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov eax, edi
call fcn.0045cde4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x28]
call fcn.00479f00
test eax, eax
jle 0x496edd
mov dl, 1
mov eax, esi
call fcn.0045dae4
mov edx, eax
mov eax, esi
call fcn.0045db88
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x28]
mov cl, 0x31
mov eax, ebx
call fcn.00479fbc
mov byte [ebx + 4], 0xa3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496efa
lea eax, [ebp - 0x10]
call fcn.00404304
ret