Function at 0x4c7a30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a16c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x18], edi
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov cl, byte [esi + 0x14]
lea edx, [esi + 0x18]
mov byte [edi + 0x14], cl
lea eax, [edi + 0x18]
lea ebx, [edi + 0x68]
mov ecx, dword [edx]
mov dword [esp + 0x14], ebx
mov dword [eax], ecx
mov ebp, 0
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
lea ecx, [edi + 0x24]
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
lea eax, [esi + 0x24]
mov edx, dword [esi + 0x24]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea edx, [edi + 0x30]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x30]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0x3c]
mov dword [edi + 0x3c], edx
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x44], ecx
mov edx, dword [esi + 0x48]
mov dword [edi + 0x48], edx
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x50], ecx
mov edx, dword [esi + 0x54]
mov dword [edi + 0x54], edx
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov ecx, dword [esi + 0x5c]
mov dword [edi + 0x5c], ecx
mov dl, byte [esi + 0x60]
mov byte [edi + 0x60], dl
mov al, byte [esi + 0x61]
mov byte [edi + 0x61], al
mov cl, byte [esi + 0x62]
mov byte [edi + 0x62], cl
mov edx, dword [esi + 0x64]
mov dword [edi + 0x64], edx
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x68]
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x30], edx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
jne 0x4c7b3d
xor eax, eax
jmp 0x4c7b50
lea ecx, [edx + edx*2]
shl ecx, 4
push ecx
call fcn.00402bf0
mov edx, dword [esp + 0x34]
add esp, 4
lea edx, [edx + edx*2]
mov dword [ebx], eax
shl edx, 4
add edx, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
push edx
push eax
mov eax, dword [esi + 0x68]
push ecx
push eax
mov dword [esp + 0x38], ebp
call fcn.004c8010
add esp, 0x10
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x74]
lea ebx, [edi + 0x8c]
mov dword [edi + 0x74], eax
mov ecx, dword [esi + 0x78]
mov dword [edi + 0x78], ecx
mov edx, dword [esi + 0x7c]
mov dword [edi + 0x7c], edx
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov ecx, dword [esi + 0x84]
mov dword [edi + 0x84], ecx
mov edx, dword [esi + 0x88]
mov dword [edi + 0x88], edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], ebx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x10], eax
sub eax, ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x28], 2
lea ecx, [eax + 1]
cmp ecx, 0xfffffffe
mov dword [esp + 0x30], ecx
ja 0x4c7c1f
cmp ecx, ebp
jne 0x4c7c06
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, ecx
mov dword [ebx + 8], eax
jmp 0x4c7c26
push ecx
call fcn.00402bf0
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], eax
add eax, ecx
mov dword [ebx + 8], eax
jmp 0x4c7c26
mov ecx, ebx
call fcn.004030f0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.004da860
add esp, 0xc
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.00402a70
lea ebx, [edi + 0x98]
mov dword [esp + 0x1c], ebx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x14], eax
sub eax, ecx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x28], 4
lea ecx, [eax + 1]
cmp ecx, 0xfffffffe
mov dword [esp + 0x30], ecx
ja 0x4c7ca9
cmp ecx, ebp
jne 0x4c7c90
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, ecx
mov dword [ebx + 8], eax
jmp 0x4c7cb0
push ecx
call fcn.00402bf0
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], eax
add eax, ecx
mov dword [ebx + 8], eax
jmp 0x4c7cb0
mov ecx, ebx
call fcn.004030f0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004da860
add esp, 0xc
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.00402a70
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
sub eax, edx
mov byte [esp + 0x28], 5
sar eax, 2
mov dword [esp + 0x30], eax
mov dword [edi + 0xa4], ebp
mov dword [edi + 0xa8], ebp
mov dword [edi + 0xac], ebp
jne 0x4c7d01
xor ebx, ebx
jmp 0x4c7d13
shl eax, 2
push eax
call fcn.00402bf0
mov ebx, eax
mov eax, dword [esp + 0x34]
add esp, 4
lea ecx, [ebx + eax*4]
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], ecx
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa4]
sub eax, ecx
sar eax, 2
shl eax, 2
push eax
push ecx
push ebx
mov dword [esp + 0x3c], eax
call fcn.005092a0
mov edx, dword [esp + 0x3c]
add esp, 0xc
add edx, ebx
mov dword [edi + 0xa8], edx
mov eax, dword [esi + 0xb0]
lea ebx, [edi + 0xfc]
mov dword [edi + 0xb0], eax
mov ecx, dword [esi + 0xb4]
mov dword [edi + 0xb4], ecx
mov edx, dword [esi + 0xb8]
mov dword [edi + 0xb8], edx
mov eax, dword [esi + 0xbc]
mov dword [edi + 0xbc], eax
mov ecx, dword [esi + 0xc0]
mov dword [edi + 0xc0], ecx
mov edx, dword [esi + 0xc4]
lea eax, [esi + 0xc8]
mov dword [edi + 0xc4], edx
lea ecx, [edi + 0xc8]
mov dword [esp + 0x1c], ebx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea edx, [edi + 0xd4]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esi + 0xd4]
mov eax, dword [esi + 0xd4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0xe0]
mov dword [edi + 0xe0], edx
mov eax, dword [esi + 0xe4]
lea ecx, [esi + 0xe8]
mov dword [edi + 0xe4], eax
lea edx, [edi + 0xe8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0xf4]
mov dword [edi + 0xf4], edx
mov eax, dword [esi + 0xf8]
mov dword [edi + 0xf8], eax
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov eax, dword [esi + 0x100]
mov ecx, dword [esi + 0xfc]
mov dword [esp + 0x10], eax
sub eax, ecx
mov dword [esp + 0x14], eax
inc eax
mov dword [esp + 0x30], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 7
call fcn.004608a0
mov ebp, dword [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebp
call fcn.005092a0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub ebp, ecx
add esp, 0xc
add ebp, eax
mov ecx, ebx
mov dword [ebx + 4], ebp
call fcn.00402a70
mov edx, dword [esi + 0x10c]
mov al, byte [esp + 0x30]
lea ecx, [esp + 0x30]
lea ebx, [edi + 0x108]
push ecx
mov ecx, dword [esi + 0x108]
sub edx, ecx
mov ecx, ebx
sar edx, 1
push edx
mov byte [esp + 0x30], 8
mov byte [esp + 0x38], al
call fcn.004c7f40
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x108]
mov ebp, dword [ebx]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push ebp
mov dword [esp + 0x20], eax
call fcn.005092a0
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, ebp
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x114]
mov dword [edi + 0x114], ecx
mov edx, dword [esi + 0x118]
mov dword [edi + 0x118], edx
mov eax, dword [esi + 0x11c]
mov dword [edi + 0x11c], eax
mov ecx, dword [esi + 0x120]
mov dword [edi + 0x120], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi], 0x5aa65c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4