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

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x513992
sub esp, 0x84
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
jmp 0x5131bb
mov eax, esi
mov edi, edx
mov edx, ebx
mov ebx, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x51361a
mov dword [esp + 0x80], ebp
mov dword [esp + 0x58], edx
nop
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x7a1dec]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.00476ec0
movzx eax, byte [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test al, al
je 0x513603
mov dword [esp + 0x38], ebx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x5c]
lea esi, [eax + ebp]
mov edi, dword [esp + 0x58]
cmp edi, esi
jb 0x513242
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
jmp 0x51328d
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
lea ecx, [0x6e06e0]
mov dword [esp + 0x10], ecx
call fcn.0046cad0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], ebp
mov edi, edx
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x7c]
lea ebx, [ecx + ebp]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00472440
mov eax, dword [esp + 0x38]
test eax, eax
je 0x513325
mov ecx, dword [esp + 0x70]
cmp byte [ecx], 0x24
jne 0x513329
mov edx, dword [esp + 0x5c]
inc edx
mov ebx, dword [esp + 0x54]
cmp ebx, edx
jb 0x5132d0
mov ebp, dword [esp + 0x7c]
jmp 0x51330e
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x70]
mov ebp, eax
mov ebx, edi
mov eax, dword [esp + 0x38]
mov byte [edx + ebp - 1], 0x24
dec eax
mov esi, eax
neg eax
sar eax, 0x1f
and eax, 1
add ecx, eax
jmp 0x5131b3
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005139a0
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test al, al
je 0x5135a0
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x513568
mov ebx, eax
shl ebx, 1
lea ebp, [ebx + 1]
mov esi, dword [esp + 0xb8]
cmp esi, ebp
jle 0x513550
cmp esi, ebx
jbe 0x513988
mov ebx, dword [esp + 0xb4]
lea edi, [ebx + eax*8]
mov edi, dword [edi]
test edi, edi
jge 0x51339d
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
jmp 0x513912
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0xa0]
test edi, edi
je 0x51346e
cmp esi, ebp
jbe 0x51397f
lea ebp, [ebx + eax*8 + 4]
mov ebp, dword [ebp]
mov ebx, dword [esp + 0xa8]
cmp ebx, ebp
jb 0x513976
mov esi, dword [esp + 0x50]
cmp ebp, esi
jb 0x51396d
sub ebp, esi
mov eax, dword [esp + 0x5c]
lea ecx, [eax + ebp]
sub ebx, esi
neg ebx
sar ebx, 0x1f
and esi, ebx
lea ebx, [edi + esi]
mov esi, dword [esp + 0x54]
cmp esi, ecx
jae 0x51343f
mov dword [esp + 0x54], ebp
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
mov esi, edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x7c]
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00472440
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
jmp 0x513531
cmp esi, ebp
jbe 0x513964
lea ebp, [ebx + eax*8 + 4]
mov ebp, dword [ebp]
mov edi, dword [esp + 0xb0]
cmp edi, ebp
jb 0x51395b
mov edi, dword [esp + 0x50]
cmp ebp, edi
jb 0x513952
sub ebp, edi
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x5c]
lea ebx, [eax + ebp]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edi
mov edi, dword [esp + 0xac]
add ebp, edi
mov edi, dword [esp + 0x54]
cmp edi, ebx
jae 0x513503
mov dword [esp + 0x78], ebp
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea ecx, [0x6e06e0]
mov dword [esp + 0x10], ecx
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x7c]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.00472440
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
mov ebp, ecx
mov edi, edx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
jmp 0x513912
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
jmp 0x513912
mov ebx, dword [esp + 8]
mov dword [esp + 0x68], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x88]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x74], edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
jmp 0x5136bb
mov eax, dword [esp + 0x5c]
inc eax
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jb 0x5135b9
mov ecx, eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x54]
jmp 0x5135eb
mov edx, dword [esp + 0x7c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x24
mov esi, dword [esp + 0x38]
mov ebx, edi
mov edx, ecx
mov ebp, eax
mov ecx, dword [esp + 0x70]
jmp 0x5131b3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x80]
lea esi, [ebx + eax]
cmp edx, esi
jae 0x513657
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
lea ecx, [0x6e06e0]
mov dword [esp + 0x10], ecx
call fcn.0046cad0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x80], ebp
add ebx, ebp
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00472440
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc8], eax
add esp, 0x84
ret
inc ecx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
cmp esi, eax
jge 0x5138ec
lea ecx, [edi + esi*8]
cmp dword [ecx + 4], ebp
je 0x5136d3
xor ecx, ecx
jmp 0x513704
mov eax, dword [ecx]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402e10
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
mov ecx, eax
mov eax, dword [esp + 0x50]
test cl, cl
je 0x513748
mov ecx, esi
shl esi, 1
lea edx, [esi + 1]
mov ebx, dword [esp + 0xb8]
cmp ebx, edx
jle 0x51373c
cmp ebx, esi
jbe 0x513949
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0xb4]
lea edx, [esi + ecx*8]
mov edx, dword [edx]
test edx, edx
jl 0x5136a3
jmp 0x51375d
mov esi, dword [esp + 0xb4]
jmp 0x5136a3
mov ecx, esi
mov ebx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb4]
jmp 0x5136a3
mov ebp, dword [esp + 0xa0]
test ebp, ebp
je 0x51382a
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jbe 0x513942
lea edi, [esi + ecx*8 + 4]
mov ecx, dword [edi]
mov edi, dword [esp + 0xa8]
cmp edi, ecx
jb 0x51393b
cmp ecx, edx
jb 0x513934
sub ecx, edx
mov eax, dword [esp + 0x5c]
lea esi, [eax + ecx]
sub edi, edx
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edx, edi
add edx, ebp
mov edi, dword [esp + 0x54]
cmp edi, esi
jae 0x5137fb
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
lea eax, [0x6e06e0]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], esi
mov ebx, dword [esp + 0x7c]
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00472440
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
jmp 0x5138f8
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jbe 0x51392d
lea edi, [esi + ecx*8 + 4]
mov ecx, dword [edi]
mov edi, dword [esp + 0xb0]
cmp edi, ecx
jb 0x513926
cmp ecx, edx
jb 0x51391f
sub ecx, edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x5c]
lea edi, [eax + ecx]
neg ecx
sar ecx, 0x1f
and ecx, edx
mov edx, dword [esp + 0xac]
add ecx, edx
mov edx, dword [esp + 0x54]
cmp edx, edi
jae 0x5138bc
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea ecx, [0x6e06e0]
mov dword [esp + 0x10], ecx
call fcn.0046cad0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov edx, ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x54], edi
mov ebx, dword [esp + 0x7c]
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.00472440
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
jmp 0x5138f8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
mov ebp, ecx
mov edi, edx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
mov esi, edx
mov ebx, eax
mov edx, ebp
mov ebp, edi
jmp 0x5131b3
mov eax, edx
call fcn.00471b90
mov edx, edi
call fcn.00471b50
mov ecx, ebx
call fcn.00471b30
mov eax, edx
call fcn.00471b90
mov edx, edi
call fcn.00471b70
mov ecx, ebx
call fcn.00471b30
mov eax, esi
mov ecx, ebx
call fcn.00471b30
mov eax, edi
mov ecx, ebp
call fcn.00471b90
mov ecx, ebp
mov edx, edi
call fcn.00471b50
mov eax, ebp
mov ecx, esi
call fcn.00471b30
mov eax, esi
mov ecx, ebp
call fcn.00471b90
mov ecx, ebp
mov edx, ebx
call fcn.00471b70
mov eax, ebp
mov ecx, esi
call fcn.00471b30
mov eax, ebx
mov ecx, esi
call fcn.00471b30
nop
call fcn.004706b0
jmp fcn.00513170