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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52011d
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 0x51fd1f
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.00452ad0
mov esi, dword [esp + 0x7c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51fd1f
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 0x51fd05
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.0051e370
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, 0
jne 0x51fd75
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
cmp edx, 0
jl 0x520116
cmp eax, edx
jl 0x520116
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], 0x5c4140
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.0043c0d0
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 0x51ffa0
mov ebp, edi
mov dword [esp + 0x28], edi
cmp esi, 0
jne 0x5200b9
cmp eax, 0
jle 0x51fe55
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x5200b2
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x51fe2f
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 4], edx
call fcn.0054c7c0
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 0x5200ab
mov esi, ecx
sub esi, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x51fe7c
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 0x5200a4
cmp edi, ebp
ja 0x5200a4
mov edx, ebp
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x51fead
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 0x51fed5
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.004535a0
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 0x52009d
mov ebp, ecx
sub ebp, ebx
sub edx, ebx
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x51ff20
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 0x51ff54
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.004535a0
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 0x51fdfc
mov dword [esp + 0x30], edx
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, ecx
ja 0x520096
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x51ffc7
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 0x52008f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x51ffec
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 0x520018
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.004535a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x50]
cmp ecx, eax
ja 0x520088
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.0043ff10
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.004286f0
ud2
call fcn.004286f0
ud2
call fcn.004286f0
ud2
call fcn.004286f0
ud2
call fcn.004286f0
ud2
call fcn.004286f0
ud2
call fcn.004286f0
ud2
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x52010f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x5200d8
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.005203b0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
add ebp, ecx
jmp 0x51fe55
call fcn.004286f0
ud2
mov edx, eax
jmp 0x51fd86
call fcn.00450db0
jmp fcn.0051fca0