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

Disassembly:
push 0xffffffffffffffff
push 0x59fcfc
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.0049c450
lea edi, [esi + 8]
mov dword [esp + 0x10], eax
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049c210
lea ecx, [esi + 0x18]
call fcn.0049c210
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0049d740
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.004ff310
mov esi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004ff2f0
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.0049e750
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.0049b2a0
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.0049b910
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.0049c1d0
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.004a0290
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.0049b910
mov dword [edi], 0x5a9458
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.004029c0
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.004029c0
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.004029c0
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.004029c0
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.0049c100
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