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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52031d
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 0x51ff1f
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.00452cd0
mov esi, dword [esp + 0x7c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51ff1f
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 0x51ff05
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.0051e570
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, 0
jne 0x51ff75
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
cmp edx, 0
jl 0x520316
cmp eax, edx
jl 0x520316
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], 0x5c4440
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.0043c2d0
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 0x5201a0
mov ebp, edi
mov dword [esp + 0x28], edi
cmp esi, 0
jne 0x5202b9
cmp eax, 0
jle 0x520055
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x5202b2
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x52002f
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 4], edx
call fcn.0054c9c0
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 0x5202ab
mov esi, ecx
sub esi, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x52007c
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 0x5202a4
cmp edi, ebp
ja 0x5202a4
mov edx, ebp
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x5200ad
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 0x5200d5
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.004537a0
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 0x52029d
mov ebp, ecx
sub ebp, ebx
sub edx, ebx
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x520120
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 0x520154
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.004537a0
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 0x51fffc
mov dword [esp + 0x30], edx
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, ecx
ja 0x520296
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x5201c7
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 0x52028f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x5201ec
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 0x520218
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.004537a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x50]
cmp ecx, eax
ja 0x520288
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.00440110
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.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x52030f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x5202d8
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.005205b0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
add ebp, ecx
jmp 0x520055
call fcn.004288f0
ud2
mov edx, eax
jmp 0x51ff86
call fcn.00450fb0
jmp fcn.0051fea0