Function at 0x515680
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 0x5161a3
sub esp, 0x9c
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x51619c
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 0x516195
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 0x515738
mov dword [esp], 0x5c4440
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.0043c470
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 0x51618e
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.004537a0
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 0x51617d
mov dword [ebx], ebp
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 0x20
cmp ebx, 0
je 0x51580d
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 0x515b09
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 1
cmp ebx, 0
je 0x515942
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.004a6710
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.00515480
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 0x51610b
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.00515480
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 0x516099
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.00515480
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 0x516027
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 0x515b09
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.004a68b0
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.00515480
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 0x515fb5
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.00515480
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 0x515f43
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.00515480
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 4
cmp ebx, 0
je 0x515ae5
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 0x515ecd
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.00515480
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 0x515e5b
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 0x515d93
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x10]
and ebx, 0x10
cmp ebx, 0
je 0x515bad
mov esi, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xbc]
dec eax
cmp eax, 0
jle 0x515b97
mov ebp, dword [esp + 0xbc]
cmp eax, ebp
jae 0x515e54
mov ebp, dword [esp + 0xb8]
add ebp, eax
movzx ebx, byte [ebp]
cmp bl, 0x2f
jne 0x515e4e
mov ecx, eax
inc ecx
mov eax, dword [esp + 0xbc]
cmp ecx, eax
ja 0x515e47
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xb8]
cmp edx, 0
je 0x515b95
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 0x515e40
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 0x515c2a
mov dword [esp], 0x5c4440
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.0043c470
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 0x515e39
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.004537a0
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 0x515e28
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 0x515db6
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.00515480
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515daf
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 0x515d3d
mov dword [esp], 0x5c4440
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.0043c470
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 0x515da8
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 [0x6043e8]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.004537a0
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 0x515d9a
mov dword [ebx], ebp
add esp, 0x9c
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f3d0
jmp 0x515d93
call fcn.004288f0
ud2
mov dword [ebx], eax
jmp 0x515ce0
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515e24
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 0x515e0b
mov dword [ebx], ecx
jmp 0x515ca7
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515ca7
mov dword [ebx], eax
jmp 0x515dea
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f3d0
jmp 0x515c8a
call fcn.004288f0
ud2
mov dword [ebx], eax
jmp 0x515bbd
call fcn.004288f0
ud2
dec eax
jmp 0x515b47
call fcn.00428880
ud2
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515ec9
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 0x515eb0
mov dword [ebx], ecx
jmp 0x515b02
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515b02
mov dword [ebx], eax
jmp 0x515e8f
mov dword [esp], 0x5c4440
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.0043c470
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515f3f
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 0x515f26
mov dword [ebx], edi
jmp 0x515a78
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.0040f3d0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
jmp 0x515a78
mov dword [ebx], eax
jmp 0x515f05
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x515fb1
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 0x515f98
mov dword [ebx], ecx
jmp 0x515a17
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x515a17
mov dword [ebx], eax
jmp 0x515f77
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x516023
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 0x51600a
mov dword [ebx], ecx
jmp 0x5159d4
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
jmp 0x5159d4
mov dword [ebx], eax
jmp 0x515fe9
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x516095
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 0x51607c
mov dword [ebx], ecx
jmp 0x51593b
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x51593b
mov dword [ebx], eax
jmp 0x51605b
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x516107
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 0x5160ee
mov dword [ebx], ecx
jmp 0x5158f8
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x5158f8
mov dword [ebx], eax
jmp 0x5160cd
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp ebx, 0
je 0x516179
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 0x516160
mov dword [ebx], ecx
jmp 0x5158b5
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
jmp 0x5158b5
mov dword [ebx], eax
jmp 0x51613f
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040f3d0
jmp 0x515792
call fcn.004288f0
ud2
mov dword [ebx], eax
jmp 0x5156cc
mov dword [ebx], eax
jmp 0x5156b0
call fcn.00450fb0
jmp fcn.00515680