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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, edx
mov edx, dword [esp + 0xd4]
mov eax, dword [esi + 0x3c0]
cmp eax, edx
jae 0x4f6d87
mov ebp, dword [esp + 0xd8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 4], eax
mov ecx, dword [ebp]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 4]
mov ebp, dword [ebp + 0x14]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], ebx
test ebp, ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], ebp
je 0x4f6666
xor ebx, ebx
cmp ebp, 0x8000000
setb al
jae 0x4f6d96
shl ebp, 4
js 0x4f6d96
mov bl, al
mov edx, ebp
shl ebx, 2
mov ecx, ebx
call fcn.0043ca7f
test eax, eax
jne 0x4f6669
mov ecx, ebx
mov edx, ebp
call fcn.0063c970
ud2
push 4
pop eax
mov ecx, eax
mov ebp, eax
mov eax, dword [esp + 4]
xor ebx, ebx
lea edx, [ebx + 1]
cmp edx, dword [esp + 0x1c]
jae 0x4f6691
and dword [ecx + 4], 0
and dword [ecx], 0
and dword [ecx + 0xc], 0
and dword [ecx + 8], 0
add ecx, 0x10
inc ebx
jmp 0x4f6673
cmp dword [esp + 0x1c], 0
mov dword [esp], ebx
je 0x4f66ad
and dword [ecx + 4], 0
and dword [ecx], 0
and dword [ecx + 0xc], 0
and dword [ecx + 8], 0
mov dword [esp], edx
mov edx, dword [esp + 0xd0]
imul ecx, eax, 0x460
mov ecx, dword [edx + ecx + 0x434]
imul ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4f6d9d
mov eax, edi
xor edx, edx
div ecx
mov ebx, dword [esp + 0x38]
movss xmm0, dword [esi + 0x3ac]
mov dword [esp + 8], ebp
sub edi, edx
lea eax, [ebx + edi]
movss dword [esp + 0x5c], xmm0
mov dword [esp + 4], eax
mov eax, edi
lea edi, [esp + 0xa4]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov eax, dword [esp + 4]
mov ebx, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x3a8]
mov dword [edi + 0xc], edx
movzx edx, byte [esi + 0x3a5]
mov dword [edi + 0x10], ecx
and dword [edi + 0x14], 0
mov ecx, eax
mov dword [esp + 0x3c], edx
imul ecx, ebx
mov dword [esp + 0x58], ecx
xor ecx, ecx
cmp edx, 1
movzx edx, byte [esi + 0x375]
setne cl
lea eax, [eax + ecx*2 + 2]
imul eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x378]
mov dword [esp + 0x48], edx
mov ecx, eax
imul ecx, ebx
mov dword [esp + 0x74], ecx
xor ecx, ecx
cmp edx, 1
movzx edx, byte [esi + 0x345]
setne cl
lea eax, [eax + ecx*2 + 2]
imul eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x348]
mov dword [esp + 0x44], edx
mov ecx, eax
imul ecx, ebx
mov dword [esp + 0x6c], ecx
xor ecx, ecx
cmp edx, 1
movzx edx, byte [esi + 0x315]
setne cl
lea eax, [eax + ecx*2 + 2]
imul eax, ebx
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x318]
mov dword [esp + 0x40], edx
mov ecx, eax
imul ecx, ebx
mov dword [esp + 0x64], ecx
xor ecx, ecx
cmp edx, 1
mov edx, dword [esi + 0x3b4]
setne cl
lea eax, [eax + ecx*2 + 2]
mov ecx, dword [esi + 0x3b0]
imul eax, ebx
shl ebx, 4
mov dword [esp + 0x60], eax
mov al, byte [esi + 0x37c]
mov dword [esp + 0x84], edx
mov dword [esp], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x3bc]
mov byte [esp + 0x17], al
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x98]
lea edx, [esp + 0xa4]
call fcn.004f63d8
mov eax, dword [esp + 0x9c]
test eax, eax
mov dword [esp + 4], eax
je 0x4f6d4c
mov eax, dword [esp + 0x98]
cmp byte [esp + 0x17], 2
movss xmm0, dword [esp + 0x5c]
mov ecx, ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, ebx
jne 0x4f685f
test eax, eax
je 0x4f694a
movss dword [ecx + 0xc], xmm0
add ecx, 0x10
add eax, 0xfffffff0
jmp 0x4f684a
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0x9eb624
push dword [esp + 0x1c]
push dword [esp + 0xc]
call fcn.004b2d6a
add esp, 0xc
cmp dword [esp + 0x3c], 0
mov edi, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
je 0x4f6916
mov ebx, dword [esp]
mov edi, dword [esp + 8]
cmp dword [esp + 0x3c], 1
mov ebp, ebx
mov esi, edi
jne 0x4f693f
test ebx, ebx
je 0x4f6943
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.004f649d
mov ecx, ebp
call fcn.004f6512
mov ecx, eax
call fcn.004b8df4
movss dword [edi + 0xc], xmm0
add ebx, 0xfffffff0
mov edi, esi
jmp 0x4f68a7
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.0050f7e8
mov ecx, ebp
call fcn.004f6553
movd xmm0, eax
add ebx, 0xfffffff0
por xmm0, xmmword [0x6463f0]
subsd xmm0, qword [0x6461f8]
cvtsd2ss xmm0, xmm0
movss dword [edi + 0xc], xmm0
mov edi, esi
test ebx, ebx
jne 0x4f68db
jmp 0x4f6943
lea ebx, [esp + 0x20]
lea edx, [esp + 0xc]
lea edi, [esi + 0x10]
mov ecx, ebx
call fcn.004f6405
mov ecx, ebx
call fcn.004f645b
movss dword [esi + 0xc], xmm0
add ebp, 0xfffffff0
mov esi, edi
test ebp, ebp
jne 0x4f691c
mov ebp, dword [esp + 8]
mov ebx, dword [esp]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push 0x9eb624
push dword [esp + 0x1c]
push dword [esp + 0xc]
call fcn.004b2d6a
add esp, 0xc
cmp dword [esp + 0x48], 0
mov edi, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
je 0x4f6a01
mov ebx, dword [esp]
mov edi, dword [esp + 8]
cmp dword [esp + 0x48], 1
mov ebp, ebx
mov esi, edi
jne 0x4f6a2a
test ebx, ebx
je 0x4f6a2e
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.004f649d
mov ecx, ebp
call fcn.004f6512
mov ecx, eax
call fcn.004b8df4
movss dword [edi + 8], xmm0
add ebx, 0xfffffff0
mov edi, esi
jmp 0x4f6992
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.0050f7e8
mov ecx, ebp
call fcn.004f6553
movd xmm0, eax
add ebx, 0xfffffff0
por xmm0, xmmword [0x6463f0]
subsd xmm0, qword [0x6461f8]
cvtsd2ss xmm0, xmm0
movss dword [edi + 8], xmm0
mov edi, esi
test ebx, ebx
jne 0x4f69c6
jmp 0x4f6a2e
lea ebx, [esp + 0x20]
lea edx, [esp + 0xc]
lea edi, [esi + 0x10]
mov ecx, ebx
call fcn.004f6405
mov ecx, ebx
call fcn.004f645b
movss dword [esi + 8], xmm0
add ebp, 0xfffffff0
mov esi, edi
test ebp, ebp
jne 0x4f6a07
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push 0x9eb624
push dword [esp + 0x1c]
push dword [esp + 0xc]
call fcn.004b2d6a
add esp, 0xc
cmp dword [esp + 0x44], 0
mov ebx, dword [esp]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
je 0x4f6aea
mov ebx, dword [esp]
mov edi, dword [esp + 8]
cmp dword [esp + 0x44], 1
mov ebp, ebx
mov esi, edi
jne 0x4f6b13
test ebx, ebx
je 0x4f6b17
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.004f649d
mov ecx, ebp
call fcn.004f6512
mov ecx, eax
call fcn.004b8df4
movss dword [edi + 4], xmm0
add ebx, 0xfffffff0
mov edi, esi
jmp 0x4f6a7b
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [edi + 0x10]
mov ecx, ebp
call fcn.0050f7e8
mov ecx, ebp
call fcn.004f6553
movd xmm0, eax
add ebx, 0xfffffff0
por xmm0, xmmword [0x6463f0]
subsd xmm0, qword [0x6461f8]
cvtsd2ss xmm0, xmm0
movss dword [edi + 4], xmm0
mov edi, esi
test ebx, ebx
jne 0x4f6aaf
jmp 0x4f6b17
lea ebx, [esp + 0x20]
lea edx, [esp + 0xc]
lea edi, [esi + 0x10]
mov ecx, ebx
call fcn.004f6405
mov ecx, ebx
call fcn.004f645b
movss dword [esi + 4], xmm0
add ebp, 0xfffffff0
mov esi, edi
test ebp, ebp
jne 0x4f6af0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push 0x9eb624
push dword [esp + 0x1c]
push dword [esp + 0xc]
call fcn.004b2d6a
add esp, 0xc
cmp dword [esp + 0x40], 0
mov esi, dword [esp]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
je 0x4f6bd1
mov esi, dword [esp]
mov ebx, dword [esp + 8]
cmp dword [esp + 0x40], 1
mov edi, esi
mov ebp, ebx
jne 0x4f6bfa
test esi, esi
je 0x4f6bfe
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea edi, [ebx + 0x10]
mov ecx, ebp
call fcn.004f649d
mov ecx, ebp
call fcn.004f6512
mov ecx, eax
call fcn.004b8df4
movss dword [ebx], xmm0
add esi, 0xfffffff0
mov ebx, edi
jmp 0x4f6b64
lea ebp, [esp + 0x20]
lea edx, [esp + 0xc]
lea ebx, [edi + 0x10]
mov ecx, ebp
call fcn.0050f7e8
mov ecx, ebp
call fcn.004f6553
movd xmm0, eax
add esi, 0xfffffff0
por xmm0, xmmword [0x6463f0]
subsd xmm0, qword [0x6461f8]
cvtsd2ss xmm0, xmm0
movss dword [edi], xmm0
mov edi, ebx
test esi, esi
jne 0x4f6b97
jmp 0x4f6bfe
lea ebx, [esp + 0x20]
lea edx, [esp + 0xc]
lea esi, [ebp + 0x10]
mov ecx, ebx
call fcn.004f6405
mov ecx, ebx
call fcn.004f645b
movss dword [ebp], xmm0
add edi, 0xfffffff0
mov ebp, esi
test edi, edi
jne 0x4f6bd7
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x30]
add eax, dword [esp + 0x78]
mov dword [esp + 0x34], eax
test esi, esi
je 0x4f6d40
movss xmm1, dword [ebx + 4]
movss xmm0, dword [ebx]
movss xmm2, dword [ebx + 8]
mov edx, dword [esp + 0x34]
mov ecx, ebp
movss dword [esp + 0x18], xmm1
movss xmm1, dword [ebx + 0xc]
movss dword [esp + 4], xmm0
movss dword [esp + 0x94], xmm2
movss dword [esp + 0x90], xmm1
call fcn.004b3bed
add eax, dword [edi + 0x10]
js 0x4f6d34
add edx, dword [edi + 0x14]
js 0x4f6d34
mov ecx, dword [edi + 8]
cmp eax, ecx
jge 0x4f6d34
cmp edx, dword [edi + 0xc]
jge 0x4f6d34
mov edi, dword [esp + 0x30]
imul edx, ecx
lea ecx, [edx + eax]
lea edx, [edx + eax + 1]
mov edi, dword [edi + 0x18]
imul ecx, edi
imul edx, edi
push 0x9efd8c
push dword [esp + 0x84]
push dword [esp + 0x8c]
call fcn.004a660c
add esp, 0xc
movss xmm0, dword [esp + 4]
movss xmm1, dword [esp + 0x18]
movss xmm2, dword [esp + 0x94]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
xor ecx, ecx
mov edx, edi
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x24], xmm1
movss xmm1, dword [esp + 0x90]
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x2c], xmm1
push 0x9efd9c
push 4
lea eax, [esp + 0x28]
push eax
call fcn.004a660c
add esp, 0xc
mov edi, edx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push 0x9efdac
push edi
mov edi, dword [esp + 0x38]
push eax
call fcn.005cccca
add esp, 0xc
add ebx, 0x10
add esi, 0xfffffff0
inc ebp
jmp 0x4f6c19
mov ebp, dword [esp + 8]
mov ebx, dword [esp]
jmp 0x4f67fd
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
test ecx, ecx
mov dword [eax], 4
je 0x4f6d6f
shl ecx, 4
mov eax, ecx
push 4
pop edx
mov ecx, ebp
push eax
call fcn.00402161
pop eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
call fcn.0043cca3
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
push 0x9e9748
call fcn.0063cc20
pop eax
ud2
call fcn.0043aad0
ud2
lea ecx, [esp + 0xa4]
mov edx, 0x9eaf64
mov dword [ecx], 0x9f48f0
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str.dest_is_out_of_bounds
and dword [ecx + 0xc], 0
call fcn.0063cbf0
ud2