Function at 0x496c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae4ea
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebx + 4]
test esi, esi
je 0x496cad
mov ecx, 8
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0058813f
lea ecx, [esi*8]
mov dword [edi], eax
push ecx
mov dword [edi + 4], esi
mov dword [edi + 8], esi
push dword [ebx]
push eax
call fcn.0058aed0
add esp, 0x10
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x496cfc
mov ecx, 4
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0058813f
mov dword [esi], eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x496da6
nop dword [eax]
mov eax, dword [ebx + 0xc]
push 0x20
mov ebx, dword [eax + ecx*4]
call fcn.00587dd8
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
mov esi, dword [ebx + 4]
mov dword [edi], 0
lea ecx, [esi + 1]
push ecx
call fcn.0058813f
mov dword [edi], eax
add esp, 8
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov edx, dword [ebx]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x496d45
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
movzx eax, word [ebx + 0x1c]
mov word [edi + 0x1c], ax
movzx eax, word [ebx + 0x1e]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov word [edi + 0x1e], ax
mov ecx, dword [edx + 0x10]
lea eax, [ecx + 1]
mov dword [edx + 0x10], eax
mov eax, dword [edx + 0xc]
mov dword [eax + ecx*4], edi
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jb 0x496d10
mov edi, edx
mov byte [ebp - 4], 3
lea esi, [edi + 0x20]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
lea ecx, [esi + 0x1c]
movzx eax, byte [ebx + 0x20]
mov byte [esi], al
movzx eax, byte [ebx + 0x21]
mov byte [esi + 1], al
mov eax, dword [ebx + 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x14], eax
mov ax, word [ebx + 0x38]
mov word [esi + 0x18], ax
movzx eax, byte [ebx + 0x3a]
mov byte [esi + 0x1a], al
movzx eax, byte [ebx + 0x3b]
mov byte [esi + 0x1b], al
lea eax, [ebx + 0x3c]
push eax
mov dword [ebp + 8], esi
call fcn.00496e40
lea eax, [ebx + 0x54]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x34]
call fcn.00496e40
mov eax, dword [ebx + 0x6c]
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x50], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4