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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5201cd
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 0x51fdcf
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.00452bf0
mov esi, dword [esp + 0x7c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51fdcf
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 0x51fdb5
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.0051e420
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
cmp eax, 0
jne 0x51fe25
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
cmp edx, 0
jl 0x5201c6
cmp eax, edx
jl 0x5201c6
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], 0x5c41e0
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.0043c1f0
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 0x520050
mov ebp, edi
mov dword [esp + 0x28], edi
cmp esi, 0
jne 0x520169
cmp eax, 0
jle 0x51ff05
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x520162
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x51fedf
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 4], edx
call fcn.0058f9d0
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 0x52015b
mov esi, ecx
sub esi, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x51ff2c
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 0x520154
cmp edi, ebp
ja 0x520154
mov edx, ebp
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x51ff5d
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 0x51ff85
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.004536c0
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 0x52014d
mov ebp, ecx
sub ebp, ebx
sub edx, ebx
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x51ffd0
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 0x520004
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.004536c0
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 0x51feac
mov dword [esp + 0x30], edx
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp eax, ecx
ja 0x520146
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x48]
cmp edx, 0
je 0x520077
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 0x52013f
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x52009c
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 0x5200c8
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.004536c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x50]
cmp ecx, eax
ja 0x520138
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.00440030
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.00428810
ud2
call fcn.00428810
ud2
call fcn.00428810
ud2
call fcn.00428810
ud2
call fcn.00428810
ud2
call fcn.00428810
ud2
call fcn.00428810
ud2
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x74]
cmp edi, eax
ja 0x5201bf
mov edx, eax
sub edx, edi
mov eax, dword [esp + 0x70]
cmp edx, 0
je 0x520188
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.00520460
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
add ebp, ecx
jmp 0x51ff05
call fcn.00428810
ud2
mov edx, eax
jmp 0x51fe36
call fcn.00450ed0
jmp fcn.0051fd50