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

Disassembly:
push 0xffffffffffffffff
push 0x4d3cc4
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
push ebx
push ebp
push esi
mov eax, dword [0x50518c]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
push 0x400
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], 0x4ec1c0
mov dword [esp + 0x2c], 0x400
call fcn.00499230
xor ebx, ebx
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x154], ebx
mov eax, dword [0x50a89c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50a89c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x154], 1
mov eax, dword [0x50a89c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50a89c
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x154], 2
call fcn.00409921
mov dword [esp + 0x3c], eax
mov byte [eax + 0x1d], 1
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [eax], eax
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], eax
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
push eax
push ecx
push edx
lea eax, [edi + 0x14]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x164], 3
call fcn.004736d0
mov eax, dword [esp + 0x2c]
cmp eax, 7
jbe 0x472e6a
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
mov dx, word [esi + 4]
mov dword [esp + 0x18], ecx
mov cl, byte [esi + 6]
add eax, 0xfffffff9
push eax
add esi, 7
push esi
push ebx
mov word [esp + 0x28], dx
mov byte [esp + 0x2a], cl
call fcn.0043058e
add esp, 0xc
cmp dword [esp + 0x1b], eax
jne 0x472e6a
movzx edx, word [esp + 0x18]
cmp edx, dword [esp + 0x2c]
jne 0x472e6a
cmp byte [esp + 0x1a], 2
jne 0x472e6a
push 0x4ec1ac
mov ebx, 2
lea esi, [esp + 0x28]
call fcn.004734c0
mov eax, dword [esp + 0x24]
add eax, 7
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00408e24
lea edx, [esp + 0x48]
mov dword [esp + 0x44], edx
call dword [0x5050d4]
mov ebp, dword [esp + 0x30]
push eax
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.0043069e
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x44]
test eax, eax
mov ebx, eax
lea esi, [edi + 0x10]
je 0x472e0d
push eax
call fcn.0049cede
add esp, 4
push ebx
mov ebx, eax
mov eax, esi
call fcn.00407bf4
mov byte [esp + 0x154], 3
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x472e34
push eax
call fcn.0049c179
add esp, 4
mov esi, dword [esi]
push esi
lea edx, [esp + 0x38]
push edx
call fcn.00408705
test eax, eax
je 0x472e68
push 0
push str.result
push str.common
lea eax, [esp + 0x40]
push eax
call fcn.00408cc8
cmp eax, 1
jne 0x472e68
mov dword [esp + 0x14], 0
xor ebx, ebx
lea esi, [esp + 0x38]
mov byte [esp + 0x154], 5
call fcn.0040934d
mov byte [esp + 0x154], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x154], bl
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472ec7
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x20], 0x4ec1c0
je 0x472ee0
push eax
call fcn.0049c4be
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 0xc