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

Disassembly:
mov ecx, dword [0x8602c0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x515989
sub esp, 0x74
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x49], 0xff
je 0x515252
lea eax, [0x83a440]
mov dword [esp], eax
call fcn.0046f790
lea eax, [0x605160]
cmp dword [esp + 4], eax
jne 0x5151d5
mov ebx, dword [esp + 8]
jmp 0x5151e7
lea eax, [0x61b340]
mov dword [esp], eax
call fcn.0040c2d0
mov ebx, dword [esp + 4]
mov dword [esp + 0x68], ebx
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x9c]
cmp ecx, edx
jg 0x515204
ja 0x515983
mov dword [ebx + 0x28], ecx
jmp 0x51524b
lea eax, [0x60dac0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044da60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x68]
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], ecx
mov ecx, dword [0x860560]
test ecx, ecx
je 0x515246
call fcn.00467c50
mov dword [edi], eax
mov ebx, dword [edx + 0x24]
mov dword [edi + 4], ebx
mov dword [edx + 0x24], eax
mov ebx, edx
mov edx, dword [ebx + 0x28]
xor eax, eax
jmp 0x515283
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x74
ret
mov ebp, dword [ebx + 0x24]
mov dword [ebp + eax*4], 0xffffffff
inc eax
cmp eax, edx
jge 0x515293
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
jb 0x515277
jmp 0x51597e
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5152e6
nop
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x14], eax
mov eax, dword [0x860560]
test eax, eax
jne 0x5152b6
mov eax, dword [esp + 0x80]
jmp 0x5152ca
call fcn.00467c50
mov eax, dword [esp + 0x80]
mov dword [edi], eax
mov ecx, dword [ebx + 0x18]
mov dword [edi + 4], ecx
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
lea eax, [ebx + 0x14]
lea ecx, [0x68aae4]
jmp 0x515366
mov eax, dword [esp + 0x84]
test eax, eax
je 0x515328
nop
mov ecx, dword [esp + 0x88]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 8], ecx
mov ecx, dword [0x860560]
test ecx, ecx
je 0x51531c
call fcn.00467c50
mov dword [edi], eax
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
mov dword [ebx], eax
lea ecx, [0x68ab2c]
mov eax, ebx
jmp 0x515366
nop
mov eax, dword [esp + 0x94]
mov dword [ebx + 0x10], eax
mov eax, dword [0x860560]
test eax, eax
jne 0x515346
mov eax, dword [esp + 0x90]
jmp 0x51535a
call fcn.00467c50
mov eax, dword [esp + 0x90]
mov dword [edi], eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0xc]
lea ecx, [0x68ab08]
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], ecx
mov edx, dword [ecx + 0x10]
mov dword [esp], eax
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
call edx
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
jne 0x51539f
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x5153d2
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x98]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x98]
test ebp, ebp
jne 0x5153ee
mov esi, eax
mov edi, 0xffffffff
jmp 0x515423
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp eax, ecx
jbe 0x515973
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edi
lea eax, [ecx + ecx*8]
test ebp, ebp
je 0x515453
xor eax, eax
jmp 0x515491
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov byte [esp + 8], al
call fcn.00514180
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
test al, al
je 0x5154d2
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x5154a0
xor eax, eax
jmp 0x5154d4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x60]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
jmp 0x5154d4
xor eax, eax
test al, al
jne 0x5154e1
mov eax, dword [esp + 0x38]
jmp 0x51559e
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], edx
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x5155b3
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x98]
add ecx, edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x10]
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x54]
lea ebp, [ebx + eax]
mov esi, dword [esp + 8]
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 4], ebp
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
call ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov eax, edx
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
jmp 0x5156d3
xor eax, eax
test al, al
je 0x515684
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xa4]
lea ebx, [edx + ecx]
mov ebp, dword [eax + 0x24]
mov esi, dword [esp + 0xa8]
cmp esi, ebx
jb 0x5155e5
mov edi, dword [esp + 0xa0]
jmp 0x515631
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x60dac0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x6c]
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.004685e0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.005150c0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb4], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.005150c0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x74
ret
mov dword [esp + 0x28], edi
mov edi, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x34], ebp
mov ebp, edx
mov edx, dword [esp + 0x78]
mov edx, ecx
mov ecx, ebx
mov ebx, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov edx, dword [edx + 0xc]
mov eax, dword [edx + 4]
cmp ecx, eax
jae 0x515968
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], esi
mov edx, dword [edx]
lea eax, [ecx + ecx*8]
lea ecx, [edx + eax*4]
movzx ecx, byte [ecx]
lea ebx, [edx + eax*4]
mov dword [esp + 0x64], ebx
mov ebx, dword [edx + eax*4 + 4]
mov dword [esp + 0x4c], ebx
cmp cl, 5
ja 0x5157f0
mov dword [esp + 0x48], edi
cmp cl, 2
ja 0x515799
cmp cl, 1
jbe 0x515760
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [esp + 0x68]
mov ecx, dword [edx + 0x28]
cmp ecx, eax
jle 0x51573d
jbe 0x515963
mov ecx, dword [edx + 0x24]
mov dword [ecx + eax*4], ebp
mov eax, dword [esp + 0x38]
mov esi, edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5156b5
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00515fb0
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5156b5
cmp cl, 3
jne 0x5158e4
mov eax, dword [edx + eax*4 + 8]
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov byte [esp + 8], al
call fcn.00514180
movzx eax, byte [esp + 0xc]
test al, al
je 0x5158dd
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5156b5
cmp cl, 7
ja 0x515845
cmp cl, 6
jne 0x51581d
mov eax, dword [esp + 0x38]
mov esi, edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5156b5
lea eax, [edx + eax*4]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.0050e820
cmp dword [esp + 8], 0xffffffff
je 0x51591c
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
jmp 0x51587a
cmp cl, 8
jne 0x515863
mov edi, dword [edx + eax*4 + 0x10]
mov edx, dword [edx + eax*4 + 0xc]
test edi, edi
jbe 0x515950
cmp dword [edx], esi
je 0x51587a
jmp 0x515923
cmp cl, 9
je 0x51587a
cmp cl, 0xa
jne 0x515938
cmp esi, 0xa
je 0x515931
mov edx, dword [esp + 0x28]
test edx, edx
je 0x51592a
add edx, ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 0xffffffff
jne 0x515899
mov eax, ebp
mov ecx, dword [esp + 0x54]
jmp 0x5158d4
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x54]
lea esi, [edx + ebp]
mov dword [esp + 4], esi
call ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov ebp, eax
mov ecx, ebx
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
jmp 0x5156b5
xor eax, eax
jmp 0x5155b5
cmp cl, 4
jne 0x515915
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x28]
test ebx, ebx
je 0x51590b
mov ebx, dword [edx + 0x24]
mov dword [ebx], 0
mov ecx, dword [edx + 0x28]
cmp ecx, 1
jbe 0x515959
mov eax, dword [edx + 0x24]
mov dword [eax + 4], ebp
mov eax, 1
jmp 0x5155b5
xor eax, eax
jmp 0x5155b5
xor eax, eax
jmp 0x5155b5
xor eax, eax
jmp 0x5155b5
xor eax, eax
jmp 0x5155b5
xor eax, eax
jmp 0x5155b5
lea eax, [0x60d940]
mov dword [esp], eax
lea eax, [0x689b48]
mov dword [esp + 4], eax
call fcn.00438060
xor eax, eax
mov ecx, eax
call fcn.00467cb0
mov eax, 1
call fcn.00467cb0
call fcn.00467cc0
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00467cb0
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00467cb0
call fcn.00467cb0
call fcn.00467cf0
nop
call fcn.00466840
jmp fcn.00515190