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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x520c3d
sub esp, 0x6c
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
cmp esi, edx
jne 0x52083f
mov ebp, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov ebp, dword [esp + 0x80]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call fcn.004535f0
mov esi, dword [esp + 0x7c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x52083f
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x90], ebx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x88]
cmp ebx, 0
je 0x520825
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.0051ee90
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, 0
jne 0x520895
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
cmp edx, 0
jl 0x520c36
cmp eax, edx
jl 0x520c36
mov ebp, ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
sub eax, ecx
imul eax, edx
mov dword [esp + 0x88], edx
add eax, ebp
mov ecx, eax
mov dword [esp], 0x5c5000
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, ecx
cdq
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.0043cbf0
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x50], ebx
xor edx, edx
mov dword [esp + 0x20], edx
xor edi, edi
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x88]
cmp eax, ebp
jge 0x520ac0
mov ebp, edi
mov dword [esp + 0x28], edi
cmp esi, 0
jne 0x520bd9
cmp eax, 0
jle 0x520975
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x520bd2
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x52094f
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 4], edx
call fcn.0054caa0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x28]
add ebp, eax
mov dword [esp + 0x30], edx
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, ecx
ja 0x520bcb
mov esi, ecx
sub esi, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x52099c
add ecx, eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edx
mov esi, ecx
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x74]
cmp ebp, ebx
ja 0x520bc4
cmp edi, ebp
ja 0x520bc4
mov edx, ebp
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x5209cd
add eax, edi
mov ebp, eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], edx
cmp edx, eax
jge 0x5209f5
mov eax, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], esi
mov dword [esp], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004540c0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
add ebx, eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp ebx, ecx
ja 0x520bbd
mov ebp, ecx
sub ebp, ebx
sub edx, ebx
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x520a40
add ecx, ebx
mov eax, edx
mov dword [esp + 0x54], ecx
mov esi, ecx
mov dword [esp + 0x58], ebp
mov edx, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x64], edx
mov eax, edx
mov dword [esp + 0x3c], ecx
cmp ecx, edx
jge 0x520a74
mov eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], esi
mov dword [esp], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004540c0
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x28]
add edi, esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x88]
cmp eax, ebp
jl 0x52091c
mov dword [esp + 0x30], edx
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, ecx
ja 0x520bb6
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x520ae7
add ecx, eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edx
mov ebp, ecx
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x520baf
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x520b0c
add eax, edi
mov ecx, eax
mov dword [esp + 0x60], ebp
mov esi, ebp
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], ecx
mov ebp, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], edx
cmp edx, eax
jge 0x520b38
mov eax, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], esi
mov dword [esp], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004540c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x50]
cmp ecx, eax
ja 0x520ba8
mov edx, dword [esp + 0x48]
mov dword [esp], 0
mov dword [esp + 0x54], edx
mov dword [esp + 4], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc], eax
call fcn.00440a30
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x90], ebx
add esp, 0x6c
ret
call fcn.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
ud2
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x520c2f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x520bf8
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.00520ed0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
add ebp, ecx
jmp 0x520975
call fcn.00429210
ud2
mov edx, eax
jmp 0x5208a6
call fcn.004518d0
jmp fcn.005207c0