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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x51ac39
sub esp, 0xb8
mov eax, 0
mov dword [esp + 0xb4], eax
mov byte [esp + 0x33], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [0x523b10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x4c], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004721b0
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0xc]
nop
mov dword [esp], ecx
lea ecx, [esp + 0x33]
mov dword [esp + 4], ecx
call fcn.00406570
movzx eax, byte [esp + 8]
test al, al
je 0x51ac26
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [0x51ac50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], ecx
mov byte [esp + 0x33], 1
call fcn.004b0e10
lea edi, [esp + 0x50]
lea esi, [esp]
call fcn.00468bde
mov eax, dword [esp + 0xbc]
lea ecx, [eax + 0x10]
mov dword [esp + 0x3c], ecx
lea edi, [esp]
lea esi, [esp + 0x50]
call fcn.00468bde
mov dword [esp + 0x18], 0xfffffffe
mov dword [esp + 0x14], 0xd5fa0e00
call fcn.004b02b0
lea edi, [esp + 0xa0]
lea esi, [esp + 0x1c]
call fcn.00468bde
lea edi, [esp + 0x8c]
mov esi, dword [esp + 0x3c]
call fcn.00468bde
lea edi, [esp]
lea esi, [esp + 0x8c]
call fcn.00468bde
lea edi, [esp + 0x14]
lea esi, [esp + 0xa0]
call fcn.00468bde
call fcn.004af160
movzx eax, byte [esp + 0x28]
test al, al
jne 0x51ac0f
mov ecx, dword [0x9eca70]
test ecx, ecx
je 0x51aadc
lea eax, [0x72eae0]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.00411960
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x50]
call fcn.00468bde
lea edi, [esp + 0x64]
xor eax, eax
call fcn.004686fb
lea ecx, [0x73887d]
mov dword [esp], ecx
mov dword [esp + 4], 0x12
call fcn.004c14c0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x51ab2f
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
call eax
lea edi, [esp + 0x64]
lea esi, [esp + 4]
call fcn.00468bde
mov eax, dword [esp + 0xbc]
mov esi, dword [eax + 0x2c]
test byte [esi], al
lea edi, [esp + 0x78]
call fcn.00468bde
lea edi, [esp]
lea esi, [esp + 0x64]
call fcn.00468bde
lea edi, [esp + 0x14]
lea esi, [esp + 0x78]
call fcn.00468bde
call fcn.004af3a0
movzx eax, byte [esp + 0x28]
test al, al
jne 0x51abf8
lea eax, [0x73887d]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.0051acd0
mov eax, dword [esp + 0xbc]
lea ecx, [eax + 0x24]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x34], edx
mov dword [esp], ecx
call fcn.00471d00
mov eax, dword [0x9eca70]
test eax, eax
jne 0x51abba
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xbc]
jmp 0x51abd2
call fcn.00468460
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 0x2c]
mov dword [edi + 4], edx
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00472080
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx]
call eax
add esp, 0xb8
ret
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx]
call eax
add esp, 0xb8
ret
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx]
call eax
add esp, 0xb8
ret
add esp, 0xb8
ret
call fcn.00467050
jmp fcn.0051a960