Function at 0x513210
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 0x513798
sub esp, 0xb8
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x2f
call fcn.00403600
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x5133d0
mov edx, dword [esp + 0xc0]
cmp edx, ecx
jb 0x513792
lea eax, [ecx + 1]
cmp edx, eax
jb 0x51378b
mov dword [esp + 0x34], ecx
sub edx, ecx
dec edx
mov dword [esp + 0x28], edx
neg edx
sar edx, 0x1f
and eax, edx
mov dword [esp + 0x40], eax
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.004686fb
mov ecx, dword [esp + 0xbc]
mov dword [esp], ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 4], esi
call fcn.004f9090
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0xa4]
lea esi, [esp + 8]
call fcn.00468bde
lea edi, [esp + 0x54]
lea esi, [esp + 0xa4]
call fcn.00468bde
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xbc]
add ecx, edx
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x51333a
mov dword [esp + 0x48], ecx
lea edi, [esp + 0x90]
lea esi, [esp + 0xa4]
call fcn.00468bde
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x513323
lea ecx, [0x6e41c0]
cmp dword [eax], ecx
jne 0x51331f
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
jmp 0x513325
xor eax, eax
jmp 0x513325
xor eax, eax
test eax, eax
jne 0x51333a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
xor ebp, ebp
jmp 0x513467
lea eax, [0x6fada0]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7353b8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x513378
mov ecx, dword [esp + 0xbc]
jmp 0x513386
call fcn.00468450
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7ab280]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
lea eax, [0x6fada0]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7353b8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x51340e
mov ecx, dword [esp + 0xbc]
jmp 0x51341c
call fcn.00468450
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7ab280]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
inc ebx
cmp ebx, eax
jge 0x51349d
movzx esi, byte [ecx + ebx]
xchg esi, eax
cmp al, 0x30
xchg esi, eax
jb 0x51349d
xchg esi, eax
cmp al, 0x39
xchg esi, eax
ja 0x51349d
lea ebp, [ebp + ebp*4]
add esi, 0xffffffd0
xchg esi, eax
movzx eax, al
xchg esi, eax
lea ebp, [esi + ebp*2]
cmp ebp, 0xffffff
jl 0x513466
xor ecx, ecx
mov ebp, 0xffffff
jmp 0x5134ae
test ebx, ebx
jne 0x5134a9
xor ecx, ecx
xor ebp, ebp
xor ebx, ebx
jmp 0x5134ae
mov ecx, 1
test cl, cl
je 0x513589
cmp ebx, eax
jne 0x513589
test ebp, ebp
jl 0x513589
lea edi, [esp + 0x7c]
lea esi, [esp + 0x54]
call fcn.00468bde
mov eax, dword [esp + 0x8c]
cmp dword [0x9c4a2c], eax
jne 0x5134e6
xor eax, eax
jmp 0x5134fa
cmp dword [0x9c4a30], eax
jne 0x5134f5
mov eax, 0x20
jmp 0x5134fa
mov eax, pe_nt_image_headers32
cmp eax, ebp
jl 0x513589
lea edi, [esp + 0x68]
lea esi, [esp + 0x54]
call fcn.00468bde
mov eax, dword [esp + 0x78]
cmp dword [0x9c4a2c], eax
jne 0x51351f
xor eax, eax
jmp 0x513533
cmp dword [0x9c4a30], eax
jne 0x51352e
mov eax, 0x20
jmp 0x513533
mov eax, pe_nt_image_headers32
cmp eax, 0x20
je 0x513548
cmp eax, 0x80
je 0x513548
xor eax, eax
xor ecx, ecx
jmp 0x51361f
cmp eax, ebp
jl 0x513580
mov dword [esp + 0x24], ebp
lea ecx, [0x6e4500]
mov dword [esp], ecx
sar eax, 3
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044e0b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
xor ebx, ebx
jmp 0x51374e
xor eax, eax
xor ecx, ecx
jmp 0x51361f
lea eax, [0x6fada0]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7353b8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x5135c7
mov ecx, dword [esp + 0xbc]
jmp 0x5135d5
call fcn.00468450
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
lea ecx, [0x7ab280]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
add esp, 0xb8
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
lea edx, [0x6de480]
mov dword [esp], edx
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
lea edi, [esp]
lea esi, [esp + 0x54]
call fcn.00468bde
call fcn.004faa30
mov edi, dword [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.00468be8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
call fcn.005120e0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
lea ebx, [0x6face0]
mov dword [esp], ebx
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x5136d3
mov ecx, dword [esp + 0x4c]
jmp 0x5136de
call fcn.00468450
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [0x9eca70]
test ecx, ecx
jne 0x5136fa
mov ecx, dword [esp + 0x44]
jmp 0x513705
call fcn.00468450
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], 0x10
mov dword [esp + 0xcc], 0x10
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
add esp, 0xb8
ret
inc ebx
cmp ebx, ecx
jge 0x513780
cmp edx, 8
jb 0x513760
mov byte [eax + ebx], 0xff
add edx, 0xfffffff8
jmp 0x51374d
mov ebp, ecx
mov ecx, edx
mov esi, 0xffffffff
xchg esi, eax
shr al, cl
xchg esi, eax
xchg esi, ebx
not ebx
xchg esi, ebx
xchg esi, ecx
mov byte [eax + ebx], cl
xchg esi, ecx
mov ecx, ebp
xor edx, edx
jmp 0x51374d
mov ecx, eax
mov eax, dword [esp + 0x30]
jmp 0x51361f
mov ecx, edx
call fcn.00468520
call fcn.004684e0
nop
call fcn.00467050
jmp fcn.00513210