Function at 0x4712c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cec76
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
mov esi, dword [ebp]
xor ebx, ebx
push ebx
push 0x18
mov edi, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.004716f0
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add eax, ecx
mov ecx, dword [eax + 8]
test cl, 6
jne 0x471348
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push 1
push 1
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call edx
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
test byte [edx + eax + 8], 1
jne 0x4714d4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0xf0], ebx
push edi
lea ebx, [esp + 0x28]
call fcn.0046d880
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xfc], 1
call fcn.00405fe0
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x3c], 0x10
jb 0x4713b1
mov eax, dword [esp + 0x28]
push eax
call fcn.00488fd0
add esp, 4
mov esi, dword [ebp]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
test byte [edx + esi + 8], 1
mov dword [esp + 0x18], 0x18
jne 0x4714c0
mov edi, 0x68
push edi
lea eax, [esp + 0x80]
push 0
push eax
call fcn.004ac850
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push esi
mov ecx, edi
call fcn.00471910
mov esi, dword [ebp]
cmp dword [esi + 4], edi
jne 0x471500
add dword [esp + 0x18], edi
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x471408
mov ebx, dword [esp + 0x74]
sub eax, edx
mov edi, eax
cmp ebx, edi
mov eax, ebx
jb 0x471421
mov eax, edi
cmp dword [esp + 0x78], 0x10
mov edx, dword [esp + 0x64]
jae 0x471430
lea edx, [esp + 0x64]
lea ecx, [esp + 0x7c]
call fcn.0040c5c0
test eax, eax
jne 0x47144e
cmp ebx, edi
jb 0x47144e
cmp ebx, edi
setne al
test eax, eax
je 0x471520
mov eax, dword [esi]
mov edx, dword [esp + 0xe0]
mov ecx, dword [eax + 4]
add dword [esp + 0x18], edx
test byte [ecx + esi + 8], 6
jne 0x4714ad
push 1
mov eax, ecx
mov ecx, dword [eax + esi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push 1
push edx
lea edx, [esp + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
add edx, ecx
cmp edx, dword [0x4d8d84]
jne 0x4714ad
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 8]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x4714a5
or eax, 4
push 0
push eax
call fcn.00466ed0
mov esi, dword [ebp]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
test byte [edx + esi + 8], 1
je 0x4713cc
cmp dword [esp + 0x78], 0x10
jb 0x4714d4
mov edx, dword [esp + 0x64]
push edx
call fcn.00488fd0
add esp, 4
xor al, al
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004a74b2
add esp, 0xe0
ret 8
mov eax, esi
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 0x28]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.00466ed0
jmp 0x4714c0
mov ecx, dword [esp + 0x1c]
push 0x68
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.004b0810
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x78], 0x10
mov dword [eax], edx
jb 0x471555
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00488fd0
add esp, 4
mov al, 1
jmp 0x4714d6