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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x5138a4
sub esp, 0xac
mov eax, 0
mov dword [esp + 0xa8], eax
mov byte [esp + 0x17], 0
nop
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x513474
mov ecx, dword [ecx]
jmp 0x513476
xor ecx, ecx
lea eax, [0x560300]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.0040c350
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 4]
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00461cc4
lea ecx, [0x560300]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea edx, [esp + 0x78]
mov dword [esp + 8], edx
call fcn.0040d470
jmp 0x5134d5
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.0040d6a0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x51353c
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
lea ebp, [0x560300]
mov dword [esp], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0040f5e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [0x714170]
test ecx, ecx
jne 0x51352e
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
jmp 0x5134c9
lea edi, [eax + 4]
mov eax, dword [esp + 0x20]
call fcn.00461af0
jmp 0x5134c9
lea eax, [0x574320]
mov dword [esp], eax
call fcn.0040b7f0
mov edi, dword [esp + 4]
mov dword [esp + 0x24], edi
mov eax, dword [0x714170]
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx]
lea ebx, [edi + 8]
mov dword [esp + 0x34], ebx
lea esi, [ecx + 8]
test eax, eax
jne 0x513583
mov dword [edi], edx
mov edx, dword [esp + 0x38]
mov dword [edi + 4], edx
mov eax, edi
mov edi, ebx
call fcn.004621ae
jmp 0x5135b6
mov eax, edx
call fcn.00461af0
lea ecx, [edi + 4]
mov eax, dword [esp + 0x38]
mov edi, ecx
call fcn.00461af0
lea ecx, [0x57cb20]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.00410060
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0x34]
mov ebp, dword [ecx + 0x30]
mov dword [eax + 0x30], ebp
mov ebp, dword [0x714170]
test ebp, ebp
jne 0x5135d5
mov dword [eax + 0x34], edx
jmp 0x5135e3
lea edi, [eax + 0x34]
mov ebp, eax
mov eax, edx
call fcn.00461af0
mov eax, ebp
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], ecx
mov ecx, dword [0x714170]
test ecx, ecx
jne 0x5135fb
mov dword [eax + 0x38], edx
jmp 0x513609
lea edi, [eax + 0x38]
mov ecx, eax
mov eax, edx
call fcn.00461af0
mov eax, ecx
lea edi, [esp + 0x3c]
mov esi, ebx
call fcn.004621ae
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
test edx, 0x80000000
je 0x513648
shl edx, 1
mov ebp, ecx
shr ecx, 0x1f
or edx, ecx
mov ecx, ebp
shl ebp, 1
mov esi, edx
shl edx, 1
shr ebp, 0x1f
or edx, ebp
shr esi, 0x1f
add edx, 0xd7b17f80
adc esi, 0xd
jmp 0x513650
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
test edx, edx
sete dl
test esi, esi
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5136ba
test ecx, 0x3fffffff
jne 0x5136ba
call fcn.00483450
lea edi, [esp + 0x64]
lea esi, [esp]
call fcn.004621ae
mov eax, dword [0x714170]
test eax, eax
jne 0x513698
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x64]
call fcn.004621ae
jmp 0x5136b6
lea eax, [0x57cb20]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call fcn.00410060
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0xbc]
mov dword [eax + 0x28], edx
mov edx, dword [0x714170]
test edx, edx
jne 0x5136e4
mov edx, dword [esp + 0xb8]
mov dword [eax + 0x24], edx
jmp 0x5136f7
lea edi, [eax + 0x24]
mov edx, eax
mov eax, dword [esp + 0xb8]
call fcn.00461af0
mov eax, edx
mov edx, dword [eax]
movzx ebx, byte [edx + 0x24]
test bl, bl
jne 0x513717
lea eax, [edx + 0x1c]
mov dword [esp], eax
call fcn.004684e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb4]
mov edx, dword [eax]
movzx ebx, byte [edx + 0x14]
mov ebp, dword [edx + 0x40]
mov esi, dword [edx + 0x44]
test ebp, ebp
jne 0x513733
mov ebp, dword [0x6ee3a8]
mov esi, dword [0x6ee3ac]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ebp
nop
movzx edi, byte [edx + 0x24]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x51376d
mov byte [esp + 0x16], bl
lea eax, [edx + 0x1c]
mov dword [esp], eax
call fcn.00468860
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb4]
movzx ebx, byte [esp + 0x16]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
test bl, bl
je 0x51379c
call fcn.00513180
mov eax, dword [0x714170]
mov ecx, dword [esp]
test eax, eax
jne 0x51378c
mov eax, dword [esp + 0x24]
mov dword [eax + 0x20], ecx
jmp 0x51379c
mov edx, dword [esp + 0x24]
lea edi, [edx + 0x20]
mov eax, ecx
call fcn.00461af0
mov eax, edx
mov dword [esp], eax
call fcn.00513920
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
lea edi, [esp + 0x50]
xor eax, eax
call fcn.00461ccb
lea eax, [0x5138b0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x50]
mov dword [esp + 0xa8], edx
mov byte [esp + 0x17], 1
nop
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], 0
lea edi, [eax + 0x2c]
mov dword [esp + 0x30], edi
mov edx, dword [0x714170]
test edx, edx
jne 0x51382a
mov dword [eax + 0x2c], ecx
jmp 0x513835
mov edx, eax
mov eax, ecx
call fcn.00461af0
mov eax, edx
mov dword [esp], eax
call fcn.00513b30
mov eax, dword [0x714170]
test eax, eax
jne 0x513854
mov eax, dword [esp + 0x24]
mov dword [eax + 0x2c], 0
jmp 0x513863
mov edi, dword [esp + 0x30]
xor eax, eax
call fcn.00461af0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jbe 0x513885
mov byte [esp + 0x17], 0
mov edx, dword [esp + 0xa8]
mov eax, dword [edx]
call eax
add esp, 0xac
ret
lea ecx, [0x57c4a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00434c50
nop
call fcn.00434200
add esp, 0xac
ret
call fcn.004606e0
jmp fcn.00513430