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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520c00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x56f790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.00408360
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
call fcn.00408360
lea eax, [edi + 8]
push eax
lea ecx, [esi + 8]
call fcn.00408360
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00408360
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.00408360
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
call fcn.00408360
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.00408360
mov al, byte [edi + 0x1c]
lea ecx, [esi + 0x20]
mov byte [esi + 0x1c], al
lea eax, [edi + 0x20]
push eax
call fcn.00408360
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
call fcn.00408360
lea eax, [edi + 0x28]
push eax
lea ecx, [esi + 0x28]
call fcn.00408360
lea eax, [edi + 0x2c]
push eax
lea ecx, [esi + 0x2c]
call fcn.00408360
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call fcn.00408360
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call fcn.00408360
lea eax, [edi + 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.00408360
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [esi + 0x3c], eax
mov ebx, dword [esi + 0x40]
mov dword [esi + 0x40], ecx
test ebx, ebx
je 0x477484
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x477484
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x477484
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [edi + 0x44]
push eax
lea ecx, [esi + 0x44]
call fcn.00408360
lea eax, [edi + 0x48]
push eax
lea ecx, [esi + 0x48]
call fcn.00408360
mov eax, dword [edi + 0x4c]
lea ebx, [edi + 0x54]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x54]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x4774e5
mov ecx, eax
call fcn.0047d5a0
mov eax, dword [ebx]
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x5c], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x60]
lea ecx, [esi + 0x7c]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
lea eax, [edi + 0x7c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00408360
mov eax, dword [edi + 0x80]
lea ecx, [esi + 0x84]
mov dword [esi + 0x80], eax
lea eax, [edi + 0x84]
push eax
call fcn.00408360
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x8c]
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [esi + 0x88], eax
mov ebx, dword [esi + 0x8c]
mov dword [esi + 0x8c], ecx
test ebx, ebx
je 0x477597
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x477597
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x477597
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea eax, [edi + 0x90]
push eax
lea ecx, [esi + 0x90]
call fcn.00408360
mov eax, esi
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