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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x525008]
xor eax, esp
mov dword [esp + 0xf4], eax
mov dword [esp + 0x20], edx
mov eax, ecx
mov ecx, dword [ebp + 8]
xorps xmm3, xmm3
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 0x10]
push esi
movzx esi, byte [eax + 0x14]
mov dword [esp + 0x54], edx
inc esi
mov edx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x48], edx
lea edi, [ecx*4 + 4]
mov edx, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
movsd qword [esp + 0x80], xmm3
imul esi, edi
call fcn.004d1900
test eax, eax
jne 0x4f1296
push eax
push esi
call fcn.00451e60
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
test edx, edx
je 0x4f1296
mov ecx, dword [esp + 8]
push esi
push 0
push edx
movzx eax, byte [ecx + 0x14]
imul eax, edi
add eax, edx
mov dword [esp + 0x20], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x14]
xor edi, edi
add esp, 0xc
mov dword [esp + 0x20], edi
mov cl, byte [eax + 0x14]
test cl, cl
je 0x4f0ddc
mov esi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x1c], edx
movzx eax, cl
mov ecx, dword [esp + 0x18]
add eax, edx
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esi], edx
test eax, eax
jle 0x4f0da4
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, edi
jl 0x4f0d90
mov edx, dword [esi]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push dword [esp + 0x2c]
push edi
push eax
call fcn.004f0b10
mov eax, dword [esp + 0x18]
inc edi
mov edx, dword [esp + 0x2c]
add esp, 0x10
add edx, dword [esp + 0xc]
add esi, 4
mov dword [esp + 0x20], edi
mov cl, byte [eax + 0x14]
movzx eax, cl
mov dword [esp + 0x1c], edx
cmp edi, eax
jl 0x4f0d71
movzx eax, cl
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0
test cl, cl
je 0x4f10e9
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
dec esi
mov dword [esp + 0x20], esi
mov eax, dword [edi + 0x10]
movzx ecx, byte [edi + 0x17]
sub eax, 4
cdq
idiv ecx
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0xc]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
xor eax, eax
mov edx, dword [esp + 0x44]
xorps xmm0, xmm0
xor ecx, ecx
movsd qword [esp + 0x68], xmm0
xorps xmm3, xmm3
movsd qword [esp + 0x70], xmm0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x2c]
jg 0x4f10b1
mov al, byte [edi + 0x16]
mov edx, dword [esp + 0x24]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + esi*4]
lea esi, [eax + eax*2]
movzx eax, byte [edi + 0x15]
shl esi, 4
add eax, 0xfffffffe
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0xc0], xmm0
movups xmm0, xmmword [eax + ecx + 0x10]
movups xmmword [esp + 0xd0], xmm0
movups xmm0, xmmword [eax + ecx + 0x20]
movups xmmword [esp + 0xe0], xmm0
movups xmm0, xmmword [esi + ecx]
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
movups xmmword [esp + 0xa0], xmm0
movups xmm0, xmmword [esi + ecx + 0x20]
mov esi, 1
movups xmmword [esp + 0xb0], xmm0
cmp dword [esp + 0x20], esi
jle 0x4f0f47
mov edi, dword [esp + 0x24]
mov edi, dword [edi]
add edi, 4
mov eax, dword [edi]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 8]
cmp esi, edx
lea edx, [esp + 0xc0]
push eax
jl 0x4f0f29
lea edx, [esp + 0x94]
call fcn.004f03e0
mov edx, dword [esp + 0x34]
inc esi
mov ecx, dword [esp + 0x2c]
add esp, 4
add edi, 4
cmp esi, dword [esp + 0x20]
jl 0x4f0f08
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x50]
xorps xmm2, xmm2
mov cl, byte [esp + 0x13]
mov eax, edx
test cl, cl
jne 0x4f0f72
movss xmm0, dword [esp + eax*4 + 0xcc]
movss xmm1, dword [esp + eax*4 + 0xc8]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4f0f8c
movd xmm0, dword [esp + eax*4 + 0xcc]
movd xmm1, dword [esp + eax*4 + 0xc8]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
sub eax, 2
subsd xmm0, xmm1
addsd xmm2, xmm0
jns 0x4f0f54
addsd xmm2, xmm3
mov eax, edx
xorps xmm3, xmm3
test cl, cl
jne 0x4f0fc0
movss xmm0, dword [esp + eax*4 + 0x9c]
movss xmm1, dword [esp + eax*4 + 0x98]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4f0fda
movd xmm0, dword [esp + eax*4 + 0x9c]
movd xmm1, dword [esp + eax*4 + 0x98]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
sub eax, 2
subsd xmm0, xmm1
addsd xmm3, xmm0
jns 0x4f0fa2
addsd xmm3, xmm2
push ecx
lea eax, [esp + 0x94]
mov ecx, edi
push eax
lea edx, [esp + 0xc8]
movsd qword [esp + 0x80], xmm3
call fcn.004f0470
add esp, 8
movsd qword [esp + 0x60], xmm0
lea edx, [esp + 0x90]
mov ecx, edi
call fcn.004f0270
lea edx, [esp + 0xc0]
movsd qword [esp + 0x88], xmm0
mov ecx, edi
call fcn.004f0270
movsd xmm1, qword [esp + 0x88]
mov edx, dword [esp + 0x30]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x60]
cmp edx, dword [esp + 0x44]
je 0x4f1078
movsd xmm2, qword [esp + 0x68]
comisd xmm2, xmm0
ja 0x4f1078
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jp 0x4f108c
movsd xmm2, qword [esp + 0x70]
comisd xmm2, xmm1
jbe 0x4f108c
mov ecx, edx
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x1c], ecx
movsd qword [esp + 0x70], xmm1
jmp 0x4f1090
mov ecx, dword [esp + 0x1c]
movsd xmm3, qword [esp + 0x78]
inc edx
mov esi, dword [esp + 0x54]
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x2c]
jle 0x4f0ea0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f10c4
movsd xmm0, qword [esp + 0x80]
comisd xmm0, xmm3
jbe 0x4f10d5
mov dword [esp + 0x38], eax
movsd qword [esp + 0x80], xmm3
mov dword [esp + 0x34], ecx
add dword [esp + 0x24], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x40]
jl 0x4f0e35
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
mov eax, dword [esi + ecx*4]
mov eax, dword [eax]
lea eax, [eax + eax*2]
add eax, eax
movups xmm0, xmmword [edx + eax*8]
movups xmmword [edi], xmm0
movups xmm0, xmmword [edx + eax*8 + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [edx + eax*8 + 0x20]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [esi + ecx*4]
xor edi, edi
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*2]
add eax, eax
movups xmm0, xmmword [edx + eax*8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx + eax*8 + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [edx + eax*8 + 0x20]
mov eax, ecx
movups xmmword [eax + 0x20], xmm0
cmp dword [esp + 0xc], edi
jle 0x4f1211
nop word [eax + eax]
cmp edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
cmovl eax, dword [esp + 0x48]
cmovl ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + eax*4]
mov eax, dword [eax + edi*4]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 8]
movzx esi, byte [eax + 2]
movzx eax, byte [eax + 3]
shl esi, 8
add esi, eax
mov eax, dword [ecx + 0x10]
movzx ecx, byte [ecx + 0x17]
sub eax, 4
cdq
idiv ecx
cmp esi, eax
jge 0x4f11e6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push esi
push dword [esp + 0x30]
call fcn.004ee4b0
lea edx, [esi + 1]
add esp, 8
mov esi, dword [esp + 0x14]
mov eax, edx
shr eax, 8
mov ecx, dword [esi + 0x18]
mov byte [ecx + 2], al
mov byte [ecx + 3], dl
mov dword [esi + 0x14], 1
push dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
call fcn.004f03e0
mov edx, dword [esp + 0x2c]
inc edi
mov esi, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x3c]
cmp edi, dword [esp + 0xc]
jl 0x4f1160
cmp dword [0x525058], 0
je 0x4f1276
mov eax, dword [0x5275d8]
test eax, eax
je 0x4f122d
push eax
call dword [0x5250a8]
add esp, 4
push esi
call dword [0x525084]
sub dword [0x5273f0], eax
add esp, 4
dec dword [0x527414]
push esi
call dword [0x52507c]
mov eax, dword [0x5275d8]
add esp, 4
test eax, eax
je 0x4f1280
push eax
call dword [0x5250b0]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret
push esi
call dword [0x52507c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xfc]
mov eax, 7
pop edi
pop esi
xor ecx, esp
call fcn.004f63f1
mov esp, ebp
pop ebp
ret