Function at 0x49a750
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x59f0cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x11
mov esi, ebx
mov edi, ebp
lea eax, [ebx + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x44]
push eax
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
call fcn.0049bdc0
lea edi, [esi + 8]
mov dword [esp + 0x10], eax
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00502310
lea ecx, [esi + 0x18]
call fcn.00502310
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0049d070
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x70], esp
mov dword [esp + 0x68], 0
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x30]
lea edi, [ebx + 0x44]
mov dword [eax + 0xc], ecx
push edx
mov ecx, edi
call fcn.0049b180
mov esi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.0049b160
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov edx, dword [esi + 8]
mov dword [ecx + 8], edx
mov edx, dword [esi + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0049e0e0
add esp, 0x34
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x58], 1
mov dword [ebp + 0x6c], edx
lea esi, [ebx + 0x70]
lea edi, [ebp + 0x70]
push esi
mov ecx, edi
mov dword [esp + 0x20], edi
call fcn.0049ab40
mov eax, dword [esi + 0x3c]
lea ecx, [esi + 0x40]
push ecx
lea ecx, [edi + 0x40]
mov byte [esp + 0x5c], 2
mov dword [edi + 0x3c], eax
call fcn.0049b2a0
mov dl, byte [esp + 0x60]
mov eax, dword [esi + 0x48]
mov byte [esp + 0x60], dl
lea edx, [esp + 0x60]
push edx
mov edx, dword [esi + 0x44]
sub eax, edx
lea ecx, [edi + 0x44]
mov edx, eax
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
mov byte [esp + 0x5c], 3
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x14], ecx
push edx
call fcn.0049bb50
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
mov byte [esp + 0x58], 4
mov edx, dword [edx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.0049fa30
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ecx + 4], eax
add esi, 0x50
lea ecx, [edi + 0x50]
push esi
mov byte [esp + 0x5c], 5
call fcn.0049b2a0
mov dword [edi], 0x5a9490
mov edx, dword [ebx + 0xc4]
lea esi, [ebx + 0xc8]
lea edi, [ebp + 0xc8]
mov ecx, 0x12
mov dword [ebp + 0xc4], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x110]
lea edi, [ebp + 0x110]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x158]
lea edi, [ebp + 0x158]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x1a0]
lea edi, [ebp + 0x1a0]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x1e8]
mov dword [ebp + 0x1e8], eax
mov ecx, dword [ebx + 0x1ec]
mov dword [ebp + 0x1ec], ecx
mov edx, dword [ebx + 0x1f0]
mov dword [ebp + 0x1f0], edx
mov eax, dword [ebx + 0x1f4]
mov dword [ebp + 0x1f4], eax
mov ecx, dword [ebx + 0x1f8]
mov dword [ebp + 0x1f8], ecx
mov edx, dword [ebx + 0x1fc]
mov dword [ebp + 0x1fc], edx
mov eax, dword [ebx + 0x200]
mov dword [ebp + 0x200], eax
mov ecx, dword [ebx + 0x204]
mov dword [ebp + 0x204], ecx
mov edx, dword [ebx + 0x208]
mov dword [ebp + 0x208], edx
mov eax, dword [ebx + 0x20c]
mov dword [ebp + 0x20c], eax
mov cl, byte [ebx + 0x210]
mov byte [ebp + 0x210], cl
mov dl, byte [ebx + 0x211]
mov byte [ebp + 0x211], dl
mov al, byte [ebx + 0x212]
lea ecx, [ebp + 0x214]
xor esi, esi
mov byte [ebp + 0x212], al
mov dword [esp + 0x60], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [ebx + 0x218]
mov edx, dword [ebx + 0x214]
push eax
push edx
mov byte [esp + 0x60], 7
call fcn.00402ac0
lea ecx, [ebp + 0x220]
mov dword [esp + 0x60], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [ebx + 0x224]
mov edx, dword [ebx + 0x220]
push eax
push edx
mov byte [esp + 0x60], 9
call fcn.00402ac0
mov ecx, dword [ebx + 0x22c]
mov dword [ebp + 0x22c], ecx
mov edx, dword [ebx + 0x230]
mov dword [ebp + 0x230], edx
mov eax, dword [ebx + 0x234]
mov dword [ebp + 0x234], eax
mov ecx, dword [ebx + 0x238]
mov dword [ebp + 0x238], ecx
mov edx, dword [ebx + 0x23c]
mov dword [ebp + 0x23c], edx
mov eax, dword [ebx + 0x240]
lea ecx, [ebp + 0x244]
mov dword [ebp + 0x240], eax
mov dword [esp + 0x60], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [ebx + 0x248]
mov edx, dword [ebx + 0x244]
push eax
push edx
mov byte [esp + 0x60], 0xb
call fcn.00402ac0
lea ecx, [ebp + 0x250]
mov dword [esp + 0x60], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [ebx + 0x254]
mov byte [esp + 0x58], 0xd
mov edx, dword [ebx + 0x250]
push eax
push edx
call fcn.00402ac0
mov ecx, dword [ebx + 0x25c]
lea esi, [ebx + 0x260]
mov dword [ebp + 0x25c], ecx
lea edi, [ebp + 0x260]
mov ecx, 0xd
add ebx, 0x294
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp + 0x294]
mov byte [esp + 0x5c], 0xe
call fcn.0049ba80
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 4