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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51f31c
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x88]
cmp eax, ecx
jne 0x51f303
mov edx, dword [esp + 0x70]
cmp edx, ecx
jne 0x51f303
mov edx, dword [esp + 0x7c]
cmp edx, ecx
jne 0x51f303
mov ebx, ecx
shl ecx, 1
mov ebp, dword [esp + 0x5c]
cmp ebp, ecx
jl 0x51f059
mov esi, dword [esp + 0x54]
jmp 0x51f0db
cmp ecx, 1
jne 0x51f09d
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov esi, eax
mov ebp, 1
mov ecx, 1
mov eax, dword [esp + 0x64]
jmp 0x51f0db
mov dword [esp + 0x34], ecx
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.00447490
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov esi, eax
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], esi
nop
test ecx, ecx
je 0x51f116
mov dword [esp], esi
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.0045f5e0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
xor edi, edi
xor edi, edi
mov dword [esp + 0x40], edi
xor edi, edi
jmp 0x51f144
lea edi, [esi + 1]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
cmp ebx, edi
jle 0x51f238
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + edi*4]
sub ebp, edi
mov dword [esp + 0x44], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edi, 2
sar ebp, 0x1f
and ebp, edi
add ebp, esi
mov dword [esp + 0x4c], ebp
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00528180
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + ecx*4]
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x84]
imul ebx, edi
mov dword [esp + 0x18], ebx
call fcn.00528180
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add edx, ecx
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x38]
lea edi, [esi + ebp]
mov ebp, dword [esp + 0x48]
mov dword [ebp + edi*4], ebx
cmp ecx, edx
ja 0x51f227
cmp eax, ebx
jbe 0x51f231
mov eax, 1
jmp 0x51f122
xor eax, eax
jmp 0x51f122
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x51f28b
mov eax, ebp
sub ebp, ebx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov edx, ebx
shl ebx, 2
sar ebp, 0x1f
and ebx, ebp
lea ebp, [esi + ebx]
sub ecx, edx
cmp edx, ecx
jg 0x51f25f
mov ecx, edx
test ebx, ebx
je 0x51f2ea
mov dword [esp], esi
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045f7b0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x48]
jmp 0x51f2ea
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
sub ebp, ebx
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl ebx, 2
sar ebp, 0x1f
and ebx, ebp
add ebx, esi
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x88]
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], ecx
call fcn.00528000
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
add esp, 0x50
ret
lea eax, [0x63eda0]
mov dword [esp], eax
lea eax, [0x6d2988]
mov dword [esp + 4], eax
call fcn.00433470
nop
call fcn.0045dbb0
jmp fcn.0051f000