Function at 0x485ed0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x494
push ebx
push ebp
mov ebp, dword [esp + 0x4a0]
cmp byte [ebp + 0x28], 0
push esi
push edi
jne 0x485efb
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
cmp dword [esp + 0x4ac], 0
jne 0x485f6b
test ecx, ecx
je 0x486ab5
mov eax, dword [esp + 0x4b8]
mov edx, dword [esp + 0x4c0]
add eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
mov eax, dword [esp + 0x4b0]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x1c], xmm1
movq xmm0, qword [esp + 0x18]
movq qword [ecx], xmm0
movss dword [esp + 0x24], xmm1
movq xmm0, qword [esp + 0x20]
movq qword [ecx + 8], xmm0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
cmp dword [ebp + 0x8c], 0
mov dword [esp + 0x48], 0
je 0x48609d
mov edx, 2
lea eax, [esp + 0xa4]
mov dword [esp + 0x3c], 0x40
mov ecx, dword [ebp + 0xb4]
mov edi, ecx
and edi, 0xff00ff
mov ebx, ecx
mov dword [eax - 4], ecx
shr ebx, 8
and ebx, 0xffff00ff
shr ecx, 8
and ecx, 0xff00ff
lea esi, [edx - 1]
imul edi, esi
imul ebx, esi
imul ecx, esi
mov esi, dword [ebp + 0xb4]
shr edi, 8
xor edi, ebx
and edi, 0xff00ff
xor edi, ecx
mov dword [eax - 4], edi
mov ecx, esi
mov edi, esi
and edi, 0xff00ff
imul edi, edx
mov ebx, ecx
shr ebx, 8
and ebx, 0xffff00ff
imul ebx, edx
shr ecx, 8
shr edi, 8
xor edi, ebx
and ecx, 0xff00ff
imul ecx, edx
and edi, 0xff00ff
xor edi, ecx
mov dword [eax], edi
mov ecx, esi
mov edi, esi
and edi, 0xff00ff
mov ebx, ecx
shr ebx, 8
lea esi, [edx + 1]
imul edi, esi
and ebx, 0xffff00ff
imul ebx, esi
shr ecx, 8
and ecx, 0xff00ff
imul ecx, esi
shr edi, 8
xor edi, ebx
and edi, 0xff00ff
xor edi, ecx
mov ecx, dword [ebp + 0xb4]
mov dword [eax + 4], edi
mov edi, ecx
and edi, 0xff00ff
mov ebx, ecx
lea esi, [edx + 2]
imul edi, esi
shr ebx, 8
mov dword [eax + 8], ecx
and ebx, 0xffff00ff
shr ecx, 8
imul ebx, esi
and ecx, 0xff00ff
imul ecx, esi
shr edi, 8
xor edi, ebx
and edi, 0xff00ff
xor edi, ecx
mov dword [eax + 8], edi
add edx, 4
add eax, 0x10
sub dword [esp + 0x3c], 1
jne 0x485f94
movss xmm0, dword [0x4d3b58]
mov eax, dword [esp + 0x4b0]
cvtsi2ss xmm1, dword [esp + 0x4b8]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax]
cvtps2pd xmm2, xmm0
cvtss2sd xmm3, xmm1
comisd xmm2, xmm3
movss dword [esp + 0x34], xmm0
ja 0x4860d5
movaps xmm1, xmm0
mov edx, dword [esp + 0x4ac]
lea ecx, [esp + 0x28]
cvtps2pd xmm2, xmm0
movsd xmm0, qword [0x4c88e0]
push ecx
mulsd xmm2, xmm0
cvtss2sd xmm1, xmm1
push edx
mulsd xmm1, xmm0
cvtsd2ss xmm2, xmm2
cvtsd2ss xmm0, xmm1
push ebp
movss dword [eax], xmm2
movss dword [esp + 0x88], xmm0
mov dword [esp + 0x34], 0
call fcn.00485b10
mov esi, eax
test esi, esi
je 0x48613a
lea ecx, [esp + 0x28]
call fcn.00401420
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
mov esi, dword [esp + 0x28]
test esi, esi
je 0x486147
add esi, 4
jmp 0x486149
xor esi, esi
mov edx, dword [esp + 0x4b8]
mov ecx, dword [esp + 0x4c0]
or eax, 0xffffffff
mov dword [esp + 0x4ac], esi
mov byte [esp + 0x13], 0
mov ebx, 0xfff80000
mov edi, 0x80000
cmp edx, eax
jne 0x486248
cmp ecx, eax
jne 0x486248
cmp dword [esp + 0x4c4], eax
jne 0x486248
cmp dword [esp + 0x4bc], eax
jne 0x486248
cmp dword [ebp + 0x94], 0
je 0x48620f
mov ecx, dword [ebp + 0x8c]
fnstcw word [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x90]
movq xmm0, qword [esp + 0x18]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x14]
mov dword [esp + 0x20], ecx
or eax, 0xc00
fild dword [esp + 0x20]
mov dword [esp + 0x38], eax
movq qword [esp + 0x4b8], xmm0
movq xmm0, qword [esp + 0x20]
fsub dword [esp + 0x34]
movq qword [esp + 0x4c0], xmm0
fldcw word [esp + 0x38]
fistp qword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x50], edx
fldcw word [esp + 0x14]
jmp 0x486280
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
movq xmm0, qword [esp + 0x18]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
movq qword [esp + 0x4b8], xmm0
movq xmm0, qword [esp + 0x20]
mov ecx, 0xfffffff
movq qword [esp + 0x4c0], xmm0
mov dword [esp + 0x50], ecx
jmp 0x486283
fild dword [esp + 0x4c0]
mov byte [esp + 0x13], 1
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fsub dword [esp + 0x34]
or eax, 0xc00
mov dword [esp + 0x38], eax
sub ecx, edx
fldcw word [esp + 0x38]
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
fldcw word [esp + 0x14]
or eax, 0xffffffff
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x4c8], eax
jne 0x486301
cmp dword [esp + 0x4d0], eax
jne 0x486301
cmp dword [esp + 0x4d4], eax
jne 0x486301
cmp dword [esp + 0x4cc], eax
jne 0x486301
xor eax, eax
cmp dword [ebp + 0x94], eax
je 0x4862d3
mov ecx, dword [ebp + 0x8c]
mov edx, dword [ebp + 0x90]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x4862e3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x4c8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esp + 0x4d0], xmm0
cmp byte [esi], 0
mov eax, dword [esp + 0x4b0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
movss xmm0, dword [0x4d3b54]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
movss dword [esp + 0x40], xmm0
mov ebx, eax
je 0x486a1c
cmp byte [esp + 0x13], 0
sete byte [esp + 0x78]
jmp 0x486340
mov eax, dword [esp + 0x78]
fldz
xorps xmm0, xmm0
push eax
push ecx
mov ecx, dword [esp + 0x4b4]
fstp dword [esp]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x64]
push ebp
movss dword [esp + 0x80], xmm0
call fcn.004858c0
mov edi, eax
test edi, edi
jne 0x4868b8
mov eax, dword [ebx + 4]
movss xmm0, dword [esp + 0x68]
ucomiss xmm0, dword [0x4d3500]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx]
mov dword [esp + 0x30], eax
lahf
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], edx
test ah, 0x44
jnp 0x486416
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
test ecx, ecx
jge 0x4863b7
fadd dword [0x4d3380]
fsub dword [esp + 0x68]
mov eax, dword [ebp + 0xb0]
fstp dword [esp + 0x4c]
movss xmm0, dword [esp + 0x4c]
cmp eax, 2
jne 0x4863f2
movss xmm2, dword [esp + 0x2c]
cvtps2pd xmm1, xmm0
mulsd xmm1, qword [0x4c88e0]
cvtps2pd xmm2, xmm2
addsd xmm1, xmm2
cvtsd2ss xmm1, xmm1
movss dword [esp + 0x2c], xmm1
cmp eax, 1
jne 0x486416
cvtss2sd xmm1, dword [esp + 0x2c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4c3fb8]
addsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x2c], xmm0
cvtss2sd xmm0, dword [esp + 0x2c]
mulsd xmm0, qword [0x4d33c8]
cvtss2sd xmm1, dword [esp + 0x40]
cvtpd2ps xmm0, xmm0
cvtss2sd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x48643e
movss dword [esp + 0x40], xmm0
mov esi, dword [esp + 0x38]
add esi, 2
lea edi, [esi + 8]
call fcn.0045eff0
mov ecx, dword [esp + 0x4ac]
shl esi, 8
inc esi
mov dword [eax], esi
mov dword [esp + 0x14], eax
mov byte [eax + 4], 0
push ecx
lea eax, [esp + 0x18]
call fcn.0043bfa0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x486901
lea eax, [esi + 4]
test eax, eax
je 0x486901
movzx ecx, byte [eax]
inc dword [esp + 0x48]
movss xmm2, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x486806
movss xmm3, dword [esp + 0x30]
cmp ecx, 0xa
je 0x4867ea
cmp ecx, 0xd
je 0x4867ea
cvtsi2ss xmm0, dword [ebp + 0xac]
movss xmm1, dword [ebx + 4]
cvtps2pd xmm1, xmm1
cvtss2sd xmm0, xmm0
addsd xmm0, xmm1
cvtsi2ss xmm1, dword [esp + 0x4cc]
cvtss2sd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x48677b
cmp ecx, 0xff
jne 0x486565
cmp dword [ebp + 0x94], 0
je 0x486565
mov edx, dword [ebp + 0x38]
cvttss2si eax, xmm2
sar eax, 2
mov dword [esp + 0x80], eax
mov edi, edx
sub edi, dword [ebp + 0x2c]
add eax, 2
cvttss2si ecx, xmm3
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xb4]
add edi, ecx
add edx, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], edx
cmp eax, 0x1000000
jb 0x4867ea
push eax
lea edx, [ebp + 0x84]
push edx
lea edi, [esp + 0x88]
call fcn.004744f0
movss xmm3, dword [esp + 0x30]
movss xmm2, dword [esp + 0x2c]
jmp 0x4867ea
mov edx, dword [ebp + 0x68]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [eax + 0xc]
add edx, 3
sar edx, 2
cvtsi2ss xmm1, edx
cvtss2sd xmm1, xmm1
cvtss2sd xmm0, xmm3
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
cvtss2sd xmm1, xmm0
movsd xmm0, qword [0x4c88a0]
addsd xmm1, xmm0
movsd qword [esp + 0x90], xmm1
cvtsi2ss xmm1, dword [eax + 8]
mov edi, dword [esp + 0x90]
cvtss2sd xmm1, xmm1
cvtss2sd xmm2, xmm2
addsd xmm1, xmm2
mov dword [esp + 0x70], eax
cvtpd2ps xmm1, xmm1
cvtss2sd xmm1, xmm1
addsd xmm1, xmm0
lea eax, [esp + 0x74]
push eax
movsd qword [esp + 0x9c], xmm1
mov esi, dword [esp + 0x9c]
lea edx, [esp + 0x68]
push edx
sar esi, 0x10
push ecx
mov eax, esi
and eax, 3
push ebp
sar edi, 0x10
call fcn.00485830
mov edx, dword [esp + 0x74]
mov ebx, eax
mov eax, dword [esp + 0x64]
sar esi, 2
lea ecx, [esi + eax]
lea eax, [edi + edx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x4c8]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call fcn.0043cf60
cmp dword [ebp + 0x94], 0
je 0x4866db
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
jge 0x4866db
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jge 0x4866db
cmp dword [esp + 0x60], 0x20
je 0x4866db
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
sub eax, edi
imul eax, dword [esp + 0x64]
sub eax, esi
sub ecx, edx
add eax, edx
add eax, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], eax
mov edi, edi
mov ecx, dword [ebp + 0x88]
imul ecx, dword [esp + 0x54]
add ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x94]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x6c]
lea edi, [edx + ecx*4]
mov dword [esp + 0x4c], eax
mov al, byte [ebx]
test al, al
je 0x4866b9
movzx ecx, al
mov esi, dword [esp + ecx*4 + 0xa0]
call fcn.00483f20
add edi, 4
inc ebx
sub dword [esp + 0x4c], 1
jne 0x4866a4
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
add dword [esp + 0x6c], edx
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x54], eax
jl 0x486680
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x48672b
mov eax, dword [esp + 0x34]
mov al, byte [eax]
test al, al
je 0x48672b
cmp dword [ebp + 0x48], 0
je 0x48672b
movzx ecx, cx
movzx edx, al
shl ecx, 0x10
add ecx, edx
mov dword [esp + 0x58], ecx
lea ecx, [ebp + 0x44]
lea eax, [esp + 0x58]
call fcn.00487820
test eax, eax
je 0x48672b
cvtsi2ss xmm0, dword [eax + 4]
cvtss2sd xmm1, dword [esp + 0x2c]
cvtss2sd xmm0, xmm0
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
jmp 0x486731
movss xmm0, dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
cvtsi2ss xmm1, dword [ebp + 0xa8]
movsx ecx, word [eax + 0x10]
movss xmm3, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x4b0]
cvtss2sd xmm0, xmm0
cvtss2sd xmm1, xmm1
addsd xmm1, xmm0
cvtsd2ss xmm0, xmm1
cvtss2sd xmm0, xmm0
cvtsi2sd xmm1, ecx
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movaps xmm2, xmm0
movss dword [esp + 0x2c], xmm2
cmp byte [ebp + 0x72], 0
je 0x4867ea
movss xmm1, dword [ebp + 0x7c]
movss xmm4, dword [ebp + 0x80]
cvtps2pd xmm1, xmm1
cvtps2pd xmm4, xmm4
cvtss2sd xmm0, xmm2
subsd xmm0, xmm1
cvtsd2ss xmm1, xmm0
cvtss2sd xmm1, xmm1
cvtss2sd xmm0, xmm3
subsd xmm0, xmm4
movapd xmm4, xmm1
mulsd xmm4, xmm1
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movapd xmm1, xmm0
mulsd xmm1, xmm0
addsd xmm4, xmm1
cvtpd2ps xmm0, xmm4
movss xmm4, dword [ebp + 0x78]
cvtss2sd xmm1, xmm0
cvtps2pd xmm4, xmm4
comisd xmm4, xmm1
jbe 0x4867ea
mov edx, dword [esp + 0x48]
movss dword [ebp + 0x78], xmm0
mov dword [ebp + 0x74], edx
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax]
inc dword [esp + 0x48]
inc eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x4864a7
cmp byte [esp + 0x13], 0
je 0x486925
cvtss2sd xmm0, dword [esp + 0x3c]
cvtss2sd xmm1, xmm2
comisd xmm1, xmm0
jbe 0x486827
movss dword [esp + 0x3c], xmm2
cvtsi2ss xmm0, dword [ebp + 0xac]
movss xmm1, dword [ebx + 4]
cvtss2sd xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ebx + 4], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [ebx], xmm0
movss xmm0, dword [ebx + 4]
cvtsi2ss xmm1, dword [ebp + 0xac]
cvtss2sd xmm1, xmm1
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
cvtsi2ss xmm1, dword [esp + 0x4d4]
cvtss2sd xmm1, xmm1
comisd xmm0, xmm1
ja 0x4869e8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4ac]
cmp byte [ecx + eax], 0
je 0x486a13
lea esi, [ecx + eax + 1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x4ac], esi
call fcn.00401420
cmp byte [esi], 0
jne 0x486340
jmp 0x486a1c
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4868f2
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4868e9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
test eax, eax
jne 0x4868f2
call fcn.0045f130
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
lea ecx, [esp + 0x14]
call fcn.00401420
lea ecx, [esp + 0x28]
call fcn.00401420
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
movss xmm1, dword [ebx + 4]
cvtss2sd xmm0, xmm2
mulsd xmm0, qword [0x4d33c8]
cvtsd2ss xmm0, xmm0
movss dword [ebx], xmm0
mov eax, dword [ebp + 0xac]
add eax, dword [ebp + 0x38]
cvtps2pd xmm1, xmm1
cvtsi2ss xmm0, eax
mov eax, dword [esp + 0x4b4]
cvtss2sd xmm0, xmm0
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ebx + 4], xmm0
test eax, eax
je 0x48698a
movss xmm0, dword [esp + 0x40]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [eax + 4], xmm0
fld dword [ebx]
fstp dword [eax + 8]
fld dword [ebx + 4]
fstp dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x4869b7
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x4869ae
push esi
call ebp
jmp 0x4869b7
test eax, eax
jne 0x4869b7
call fcn.0045f130
mov esi, dword [esp + 0x28]
test esi, esi
je 0x486ab5
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x486aac
push esi
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
test esi, esi
je 0x486a1c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x486a08
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x486a1c
test eax, eax
jne 0x486a1c
call fcn.0045f130
jmp 0x486a1c
lea ecx, [esp + 0x14]
call fcn.00401420
cvtsi2ss xmm0, dword [ebp + 0x38]
movss xmm1, dword [ebx + 4]
mov eax, dword [esp + 0x4b4]
cvtss2sd xmm0, xmm0
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ebx + 4], xmm0
cvtss2sd xmm0, dword [esp + 0x3c]
mulsd xmm0, qword [0x4d33c8]
cvtsd2ss xmm0, xmm0
movss dword [ebx], xmm0
test eax, eax
je 0x486a7b
movss xmm0, dword [esp + 0x40]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [eax + 4], xmm0
fld dword [ebx]
fstp dword [eax + 8]
fld dword [ebx + 4]
fstp dword [eax + 0xc]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x486ab5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x486aac
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x494
ret 0x30
test eax, eax
jne 0x486ab5
call fcn.0045f130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x494
ret 0x30