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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x515fa3
sub esp, 0x9c
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515f9c
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x64], ebp
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0xa0]
cmp ebx, 0
je 0x515f95
mov ebp, dword [ebx + 8]
mov dword [esp + 0x4c], ebp
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], ecx
mov esi, dword [esp + 0x64]
mov dword [esp + 0x68], eax
mov ecx, eax
mov ebx, dword [esp + 0x50]
mov edi, esi
add esi, ebx
cmp esi, eax
jbe 0x515538
mov dword [esp], 0x5c4140
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 8], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], esi
call fcn.0043c270
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
cmp esi, ecx
ja 0x515f8e
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x54]
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004535a0
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x58]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x5c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x54]
cmp byte [0x6d9e38], 0
jne 0x515f7d
mov dword [ebx], ebp
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 0x20
cmp ebx, 0
je 0x51560d
mov ebp, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
xor ebx, ebx
mov eax, dword [0x6c4874]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0xb4], eax
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 7
cmp ebx, 0
je 0x515909
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 1
cmp ebx, 0
je 0x515742
mov ebx, dword [esp + 0xa8]
mov dword [esp], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xc], ebx
call fcn.004a6510
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515f0b
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x2f
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515e99
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x2f
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515e27
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x20
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 6
cmp ebx, 0
je 0x515909
mov ebx, dword [esp + 0xa8]
mov dword [esp], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xc], ebx
call fcn.004a66b0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515db5
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x3a
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515d43
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x3a
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.00515280
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 4
cmp ebx, 0
je 0x5158e5
mov ebx, dword [esp + 0xa4]
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov dword [esp + 0x30], ebp
mov ebp, ecx
inc ebp
mov esi, dword [esp + 0x30]
cmp ebp, esi
ja 0x515ccd
mov dword [ebx + 4], ebp
mov ebx, edi
add ebx, ecx
mov byte [ebx], 0x2e
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x90], ebx
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], ecx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov eax, 0x10624dd3
imul ecx
mov ebp, edx
sar ebp, 6
mov ebx, ecx
sar ebx, 0x1f
sub ebp, ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], 6
call fcn.00515280
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515c5b
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x20
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 0x18
cmp ebx, 0
je 0x515b93
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 0x10
cmp ebx, 0
je 0x5159ad
mov esi, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xbc]
dec eax
cmp eax, 0
jle 0x515997
mov ebp, dword [esp + 0xbc]
cmp eax, ebp
jae 0x515c54
mov ebp, dword [esp + 0xb8]
add ebp, eax
movzx ebx, byte [ebp]
cmp bl, 0x2f
jne 0x515c4e
mov ecx, eax
inc ecx
mov eax, dword [esp + 0xbc]
cmp ecx, eax
ja 0x515c47
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xb8]
cmp edx, 0
je 0x515995
add eax, ecx
mov esi, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0xbc], edx
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515c40
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x64], ebp
mov ebp, dword [ebx + 8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], ecx
mov edi, dword [esp + 0x64]
mov dword [esp + 0x68], ebp
mov ecx, ebp
mov ebx, dword [esp + 0xbc]
mov esi, edi
add esi, ebx
cmp esi, ebp
jbe 0x515a2a
mov dword [esp], 0x5c4140
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 8], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], esi
call fcn.0043c270
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
cmp esi, ecx
ja 0x515c39
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x54]
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0xb8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004535a0
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x58]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x5c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x54]
cmp byte [0x6d9e38], 0
jne 0x515c28
mov dword [ebx], ebp
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, edx
ja 0x515bb6
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x3a
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0xffffffff
call fcn.00515280
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515baf
mov edi, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x64], ebp
mov ecx, dword [ebx + 8]
mov dword [esp + 0x60], edi
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x68], ecx
mov esi, ebp
add ebp, 2
cmp ebp, ecx
jbe 0x515b3d
mov dword [esp], 0x5c4140
mov dword [esp + 0x54], edi
mov dword [esp + 4], edi
mov dword [esp + 0x58], esi
mov dword [esp + 8], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
cmp ebp, ecx
ja 0x515ba8
mov dword [esp + 0x58], ebp
mov ebx, dword [esp + 0x64]
mov ebp, edi
mov dword [esp + 0x54], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [0x604008]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.004535a0
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x58]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x5c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x54]
cmp byte [0x6d9e38], 0
jne 0x515b9a
mov dword [ebx], ebp
add esp, 0x9c
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f1d0
jmp 0x515b93
call fcn.004286f0
ud2
mov dword [ebx], eax
jmp 0x515ae0
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515c24
mov eax, ebp
mov dword [esp + 0x30], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515c0b
mov dword [ebx], ecx
jmp 0x515aa7
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515aa7
mov dword [ebx], eax
jmp 0x515bea
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f1d0
jmp 0x515a8a
call fcn.004286f0
ud2
mov dword [ebx], eax
jmp 0x5159bd
call fcn.004286f0
ud2
dec eax
jmp 0x515947
call fcn.00428680
ud2
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515cc9
mov eax, ebp
mov dword [esp + 0x30], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515cb0
mov dword [ebx], ecx
jmp 0x515902
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515902
mov dword [ebx], eax
jmp 0x515c8f
mov dword [esp], 0x5c4140
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515d3f
mov ecx, ebp
mov dword [esp + 0x34], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], esi
mov dword [esp + 0x40], edi
cmp byte [0x6d9e38], 0
jne 0x515d26
mov dword [ebx], edi
jmp 0x515878
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.0040f1d0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
jmp 0x515878
mov dword [ebx], eax
jmp 0x515d05
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515db1
mov eax, ebp
mov dword [esp + 0x30], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515d98
mov dword [ebx], ecx
jmp 0x515817
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515817
mov dword [ebx], eax
jmp 0x515d77
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515e23
mov eax, ebp
mov dword [esp + 0x30], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515e0a
mov dword [ebx], ecx
jmp 0x5157d4
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x5157d4
mov dword [ebx], eax
jmp 0x515de9
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515e95
mov eax, ebp
mov dword [esp + 0x34], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515e7c
mov dword [ebx], ecx
jmp 0x51573b
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x51573b
mov dword [ebx], eax
jmp 0x515e5b
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515f07
mov eax, ebp
mov dword [esp + 0x34], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515eee
mov dword [ebx], ecx
jmp 0x5156f8
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x5156f8
mov dword [ebx], eax
jmp 0x515ecd
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515f79
mov eax, ebp
mov dword [esp + 0x34], ebp
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6d9e38], 0
jne 0x515f60
mov dword [ebx], ecx
jmp 0x5156b5
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x5156b5
mov dword [ebx], eax
jmp 0x515f3f
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f1d0
jmp 0x515592
call fcn.004286f0
ud2
mov dword [ebx], eax
jmp 0x5154cc
mov dword [ebx], eax
jmp 0x5154b0
call fcn.00450db0
jmp fcn.00515480