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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5195f5
sub esp, 0x84
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0046bbab
mov byte [esp + 0x37], 1
mov ecx, dword [esp + 0x90]
cmp ecx, 0x13
jl 0x518f5a
mov edx, dword [esp + 0x8c]
xor ebx, ebx
xor ebp, ebp
jmp 0x518f83
lea edi, [esp + 0x98]
call fcn.0046bbab
mov byte [esp + 0xac], 0
add esp, 0x84
ret
lea ebp, [ebp + ebp*4]
xchg esi, eax
movzx eax, al
xchg esi, eax
inc ebx
lea ebp, [esi + ebp*2 - 0x30]
cmp ebx, 4
jge 0x518f9f
movzx esi, byte [edx + ebx]
lea edi, [esi - 0x30]
xchg edi, eax
cmp al, 9
xchg edi, eax
jbe 0x518f75
mov byte [esp + 0x37], 0
xor ebp, ebp
jmp 0x518fae
cmp ebp, 0x270f
jbe 0x518fae
mov byte [esp + 0x37], 0
xor ebp, ebp
xor ebx, ebx
xor esi, esi
jmp 0x518fc3
lea eax, [esi + esi*4]
xchg edi, eax
movzx esi, al
xchg edi, eax
inc ebx
lea esi, [esi + eax*2 - 0x30]
xor eax, eax
cmp ebx, 2
jge 0x518fe1
movzx edi, byte [edx + ebx + 5]
lea eax, [edi - 0x30]
cmp al, 9
jbe 0x518fb4
mov byte [esp + 0x37], 0
mov esi, 1
jmp 0x518ff3
lea ebx, [esi - 1]
cmp ebx, 0xb
jbe 0x518ff3
mov byte [esp + 0x37], 0
mov esi, 1
cmp esi, 2
jne 0x519038
test ebp, 3
jne 0x519032
mov ebx, ebp
sar ebp, 0x1f
mov eax, 0x51eb851f
mov edi, edx
imul ebx
mov eax, edx
sar edx, 5
sub edx, ebp
imul edx, edx, 0x64
cmp ebx, edx
jne 0x51902b
sar eax, 7
sub eax, ebp
imul edx, eax, 0x190
cmp ebx, edx
jne 0x51903c
mov ebp, 0x1d
jmp 0x51905e
mov ebx, ebp
mov edi, edx
jmp 0x51903c
mov ebx, ebp
mov edi, edx
cmp esi, 0xd
jae 0x5195e8
lea eax, [esi - 1]
lea edx, [0x7db740]
mov ebp, dword [edx + esi*4]
cmp eax, 0xd
jae 0x5195de
sub ebp, dword [edx + esi*4 - 4]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], esi
xor eax, eax
xor edx, edx
jmp 0x519081
lea edx, [edx + edx*4]
xchg esi, eax
movzx ebx, al
xchg esi, eax
inc eax
lea edx, [ebx + edx*2 - 0x30]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x4c]
cmp eax, 2
jge 0x5190a7
movzx esi, byte [edi + eax + 8]
lea ebx, [esi - 0x30]
cmp bl, 9
jbe 0x51906c
mov byte [esp + 0x37], 0
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x4c]
mov edx, 1
jmp 0x5190b9
test edx, edx
jle 0x5190af
cmp edx, ebp
jle 0x5190b9
mov byte [esp + 0x37], 0
mov edx, 1
mov dword [esp + 0x48], edx
xor eax, eax
xor ebp, ebp
jmp 0x5190d7
lea ebp, [ebp + ebp*4]
movzx edx, dl
inc eax
lea ebp, [edx + ebp*2 - 0x30]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
cmp eax, 2
jge 0x5190fc
movzx edx, byte [edi + eax + 0xb]
lea esi, [edx - 0x30]
xchg esi, eax
cmp al, 9
xchg esi, eax
jbe 0x5190c3
mov byte [esp + 0x37], 0
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x519108
cmp ebp, 0x17
jbe 0x519108
mov byte [esp + 0x37], 0
xor ebp, ebp
mov dword [esp + 0x44], ebp
xor eax, eax
xor eax, eax
mov dword [esp + 0x40], eax
xor eax, eax
jmp 0x519135
mov edx, dword [esp + 0x40]
lea edx, [edx + edx*4]
xchg ebp, eax
movzx eax, al
xchg ebp, eax
inc eax
lea edx, [ebp + edx*2 - 0x30]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x48]
cmp eax, 2
jge 0x519158
movzx ebp, byte [edi + eax + 0xe]
lea edx, [ebp - 0x30]
cmp dl, 9
jbe 0x519118
mov byte [esp + 0x37], 0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
xor ebp, ebp
jmp 0x51916a
mov eax, ebp
mov ebp, dword [esp + 0x40]
cmp ebp, 0x3b
jbe 0x51916a
mov byte [esp + 0x37], 0
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
jmp 0x5191a7
mov edx, dword [esp + 0x3c]
lea edx, [edx + edx*4]
movzx eax, al
inc ebp
lea eax, [eax + edx*2 - 0x30]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
cmp ebp, 2
jge 0x5191ce
movzx eax, byte [edi + ebp + 0x11]
lea edx, [eax - 0x30]
cmp dl, 9
jbe 0x519184
mov byte [esp + 0x37], 0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
xor ebp, ebp
jmp 0x5191de
mov ebp, dword [esp + 0x3c]
cmp ebp, 0x3b
jbe 0x5191de
mov byte [esp + 0x37], 0
xor ebp, ebp
mov dword [esp + 0x3c], ebp
movzx ebp, byte [esp + 0x37]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x519254
cmp byte [edi + 4], 0x2d
jne 0x519254
cmp byte [edi + 7], 0x2d
jne 0x519254
cmp byte [edi + 0xa], 0x54
jne 0x519254
cmp byte [edi + 0xd], 0x3a
jne 0x519254
cmp byte [edi + 0x10], 0x3a
jne 0x519254
lea ebp, [ecx - 0x13]
mov dword [esp + 0x50], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 0x13
lea ecx, [edi + ebp]
mov eax, dword [esp + 0x50]
cmp eax, 2
jl 0x519250
cmp byte [ecx], 0x2e
jne 0x51924c
movzx ebp, byte [edi + ebp + 1]
add ebp, 0xffffffd0
xchg ebp, eax
cmp al, 9
xchg ebp, eax
ja 0x519248
mov ebp, 2
jmp 0x51955c
xor ebp, ebp
jmp 0x519271
xor ebp, ebp
jmp 0x519271
xor ebp, ebp
jmp 0x519271
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0046bbab
mov byte [esp + 0xac], 0
add esp, 0x84
ret
mov dword [esp + 0x80], ecx
mov dword [esp + 0x64], eax
mov edi, dword [0x7e6650]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
call fcn.00513910
lea edi, [esp + 0x68]
lea esi, [esp + 0x20]
call fcn.0046c08e
mov eax, dword [esp + 0x64]
cmp eax, 1
je 0x5192d1
mov ecx, dword [esp + 0x80]
jmp 0x5192dd
mov ecx, dword [esp + 0x80]
cmp byte [ecx], 0x5a
je 0x519305
cmp eax, 6
jne 0x5192e8
xor eax, eax
xor edx, edx
jmp 0x51932f
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0046bbab
mov byte [esp + 0xac], 0
add esp, 0x84
ret
lea edi, [esp + 0x98]
lea esi, [esp + 0x68]
call fcn.0046c08e
mov byte [esp + 0xac], 1
add esp, 0x84
ret
lea ebp, [edx + edx*4]
movzx ebx, bl
inc eax
lea edx, [ebx + ebp*2 - 0x30]
cmp eax, 2
jge 0x51934c
movzx ebx, byte [eax + ecx + 1]
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x519324
mov byte [esp + 0x37], 0
xor edx, edx
jmp 0x519358
cmp edx, 0x17
jbe 0x519358
mov byte [esp + 0x37], 0
xor edx, edx
xor eax, eax
xor ebx, ebx
jmp 0x51936b
lea esi, [ebx + ebx*4]
xchg ebp, eax
movzx eax, al
xchg ebp, eax
inc eax
lea ebx, [ebp + esi*2 - 0x30]
cmp eax, 2
jge 0x519388
movzx ebp, byte [ecx + eax + 4]
lea esi, [ebp - 0x30]
xchg esi, eax
cmp al, 9
xchg esi, eax
jbe 0x51935e
mov byte [esp + 0x37], 0
xor ebx, ebx
jmp 0x519394
cmp ebx, 0x3b
jbe 0x519394
mov byte [esp + 0x37], 0
xor ebx, ebx
movzx ebp, byte [esp + 0x37]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x51953e
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0x2d
xchg ebp, eax
je 0x5193b8
xchg ebp, eax
cmp al, 0x2b
xchg ebp, eax
jne 0x51953e
cmp byte [ecx + 3], 0x3a
jne 0x51953e
imul eax, edx, 0x3c
add eax, ebx
imul eax, eax, 0x3c
xchg ebp, eax
cmp al, 0x2d
xchg ebp, eax
jne 0x5193d3
neg eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x68]
mov dword [esp], ecx
mov ecx, eax
sar eax, 0x1f
xor edx, edx
sub edx, ecx
mov dword [esp + 4], edx
mov edx, 0
sbb edx, eax
mov dword [esp + 8], edx
call fcn.00510c30
mov eax, dword [esp + 0x6c]
test eax, 0x80000000
je 0x51942c
mov ecx, dword [esp + 0x68]
shl eax, 1
mov edx, ecx
shl ecx, 1
shr edx, 0x1f
or eax, edx
mov edx, eax
shl eax, 1
shr ecx, 0x1f
or ecx, eax
shr edx, 0x1f
add ecx, 0xd7b17f80
adc edx, 0xd
jmp 0x519434
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x94]
mov dword [esp], eax
add ecx, 0x886e0900
mov dword [esp + 4], ecx
adc edx, 0xfffffff1
mov dword [esp + 8], edx
call fcn.00514860
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jne 0x5194c4
nop
mov eax, dword [esp + 0x94]
lea ecx, [0x7ea420]
cmp eax, ecx
jne 0x519472
xor eax, eax
mov ecx, dword [esp + 0x6c]
nop
test ecx, 0x80000000
je 0x5194bb
mov edx, dword [esp + 0x68]
shl ecx, 1
mov ebx, edx
shl edx, 1
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
shl ebx, 1
shr edx, 0x1f
or edx, ebx
shr ecx, 0x1f
add edx, 0xd7b17f80
mov dword [esp + 0x70], edx
adc ecx, 0xd
mov dword [esp + 0x74], ecx
and dword [esp + 0x68], 0x3fffffff
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], eax
jmp 0x519305
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.00514650
mov eax, dword [esp + 0xc]
lea ecx, [0x7ea420]
cmp eax, ecx
jne 0x5194ec
xor eax, eax
mov ecx, dword [esp + 0x6c]
nop
test ecx, 0x80000000
je 0x519535
mov edx, dword [esp + 0x68]
mov ebx, edx
shl edx, 1
shl ecx, 1
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
shl ebx, 1
shr ecx, 0x1f
shr edx, 0x1f
or edx, ebx
add edx, 0xd7b17f80
mov dword [esp + 0x70], edx
adc ecx, 0xd
mov dword [esp + 0x74], ecx
and dword [esp + 0x68], 0x3fffffff
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], eax
jmp 0x519305
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0046bbab
mov byte [esp + 0xac], 0
add esp, 0x84
ret
inc ebp
cmp ebp, eax
jge 0x51956f
movzx edi, byte [ebp + ecx]
add edi, 0xffffffd0
xchg edi, eax
cmp al, 9
xchg edi, eax
jbe 0x51955b
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x54], ebp
mov edx, dword [esp + 0x88]
mov edx, dword [edx + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
call fcn.00518be0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
ja 0x5195d9
mov edi, dword [esp + 0x90]
sub edi, eax
add edi, 0xffffffed
mov ecx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and eax, edi
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x7c]
add edi, eax
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x4c]
mov eax, ecx
mov ecx, edi
jmp 0x519271
call fcn.0046ba10
mov ecx, 0xd
call fcn.0046b9b0
mov eax, esi
mov ecx, 0xd
call fcn.0046b9b0
nop
call fcn.0046a530
jmp fcn.00518f10