Function at 0x1004b040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x100e800c]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
xorps xmm1, xmm1
mov dword [esp + 0x58], 0xffffffff
mov word [esp + 0x5c], 0
test byte [edi + 0x14], 1
mov ecx, dword [edi + 0x36e8]
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3704], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x3708], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x370c], eax
jne 0x1004b0c2
mov eax, dword [0x1012bdc8]
cmp eax, 0xffffffff
je 0x1004b0c2
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x101407d0]
test al, al
je 0x1004b0c2
mov byte [0x101a756d], 1
jmp 0x1004b0cb
cmp byte [0x101a756d], 0
je 0x1004b123
mov eax, dword [0x101a9c54]
add eax, 0xffffffd8
xor eax, 0x976fd337
add eax, dword [0x101ae588]
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10035c40
comiss xmm0, dword [0x100dcde4]
jbe 0x1004b108
call fcn.100acb00
jmp 0x1004b120
mov eax, dword [0x101b1c70]
mov dword [eax + 0x28], 0
mov eax, dword [0x101b1c70]
mov dword [eax + 0x24], 0
xorps xmm1, xmm1
mov eax, dword [0x101b5260]
test al, 1
jne 0x1004b1a2
or eax, 1
mov dword [0x101b5260], eax
mov eax, dword [0x101a9a40]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1004b18c
mov eax, dword [eax + 0xc]
mov esi, 0x811c9dc5
mov dword [esp + 0xc], eax
xor ecx, ecx
inc ecx
cmp byte [ecx + eax], 0
jne 0x1004b152
xor edx, edx
test ecx, ecx
je 0x1004b17d
nop
movsx eax, byte [edx + eax]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
mov eax, dword [esp + 0xc]
cmp edx, ecx
jb 0x1004b160
cmp esi, 0xcc254ccd
je 0x1004b196
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004b144
xor ecx, ecx
mov dword [0x101b5264], ecx
jmp 0x1004b1a8
mov ecx, dword [esp + 0x10]
mov dword [0x101b5264], ecx
jmp 0x1004b1a8
mov ecx, dword [0x101b5264]
movss xmm0, dword [0x1012d960]
comiss xmm0, xmm1
jbe 0x1004b1c2
mov eax, dword [ecx]
push ecx
movss dword [esp], xmm0
mov eax, dword [eax + 0x3c]
jmp 0x1004b1d4
mov eax, dword [0x101b1c68]
cdq
idiv dword [0x101b1c64]
mov esi, dword [ecx]
push eax
mov eax, dword [esi + 0x40]
call eax
mov ecx, dword [0x101a9cc4]
mov eax, dword [0x101ae588]
add ecx, 0xffffffbc
xor ecx, 0x976fd353
cmp dword [ecx + eax], 8
je 0x1004b227
mov eax, dword [0x101b1c70]
mov ecx, dword [eax + 0x30]
test cl, 2
je 0x1004b227
test byte [0x101ae59c], 1
jne 0x1004b227
cmp byte [0x1012be5d], 0
je 0x1004b21a
and ecx, 0xfffffffd
mov dword [eax + 0x30], ecx
mov eax, dword [0x101b1c70]
cmp byte [0x1012bee5], 0
je 0x1004b227
or dword [eax + 0x30], 4
mov ecx, 0x10141620
call fcn.100abb10
mov eax, dword [0x101a9c54]
mov ecx, dword [0x101ae588]
add eax, 0xffffffd8
xor eax, 0x976fd337
mov dword [esp + 0xc], 0
movq xmm0, qword [eax + ecx]
mov eax, dword [eax + ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x1012c214]
movq qword [esp + 0x24], xmm0
cmp eax, 0xffffffff
je 0x1004b421
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x101407d0]
test al, al
je 0x1004b421
mov eax, dword [0x101a9d64]
add eax, 0xffffff94
xor eax, 0x976fd37b
mov eax, dword [eax + ecx]
mov ecx, dword [0x101a9a48]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
je 0x1004b421
mov ecx, dword [0x101a9b10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
mov ecx, dword [0x101a9d20]
mov eax, dword [0x101ae588]
add ecx, 0xffffffa5
xor ecx, 0x976fd36a
cmp dword [0x101b1c30], 0
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [ecx + eax]
movss dword [esp + 8], xmm0
jle 0x1004b3ed
movss xmm2, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x28]
movss xmm4, dword [esp + 0x24]
movss dword [esp + 0x10], xmm2
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x14], xmm4
movaps xmm1, xmm3
movaps xmm0, xmm4
mulss xmm0, xmm4
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.10035c40
movss xmm1, dword [0x100dcc2c]
comiss xmm1, xmm0
movss dword [esp + 0x20], xmm0
jae 0x1004b3ed
mov ecx, dword [0x101a9b14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x1c], eax
call dword [esp + 0x1c]
movss xmm2, dword [esp + 0x20]
mov eax, dword [0x101a9aa4]
movaps xmm0, xmm2
fstp dword [esp + 0x1c]
maxss xmm0, dword [esp + 0x1c]
movss xmm4, dword [esp + 0x14]
movaps xmm1, xmm2
movss xmm3, dword [esp + 0x18]
mulss xmm0, dword [esp + 8]
mulss xmm0, dword [eax + 0x20]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm1, xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x1004b3d2
divss xmm1, xmm2
movss xmm2, dword [esp + 0x10]
mulss xmm4, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x10], xmm2
jmp 0x1004b3d8
movss xmm2, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [0x101b1c30]
jl 0x1004b316
mov eax, dword [0x101a9ab8]
mov ecx, dword [eax + 0x4cb0]
mov eax, 0xf
sub eax, ecx
cmp dword [esp + 0xc], eax
jg 0x1004b409
test ecx, ecx
jne 0x1004b421
mov eax, dword [0x101b1c70]
mov dword [eax + 0x28], 0
mov eax, dword [0x101b1c70]
mov dword [eax + 0x24], 0
call fcn.100acdd0
push dword [0x101b1c70]
movss xmm2, dword [edi + 0x3708]
mov ecx, 0x10141620
call fcn.100ac3d0
cmp byte [0x101aebfd], 0
jne 0x1004b4b9
cmp byte [0x1012bd41], 0
je 0x1004b4b9
test byte [0x101ae59c], 1
je 0x1004b4b9
mov eax, dword [0x101b1c70]
test byte [eax + 0x30], 2
jne 0x1004b4b9
mov eax, dword [0x101a9c54]
add eax, 0xffffffd8
xor eax, 0x976fd337
add eax, dword [0x101ae588]
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10035c40
comiss xmm0, dword [0x100dce14]
jbe 0x1004b4a1
call fcn.100acb00
jmp 0x1004b4b9
mov eax, dword [0x101b1c70]
mov dword [eax + 0x24], 0
mov eax, dword [0x101b1c70]
mov dword [eax + 0x28], 0
cmp byte [0x101a756c], 0
mov byte [0x101a756d], 0
je 0x1004b4ce
call fcn.100ac7d0
push dword [0x101b1c70]
movss xmm2, dword [edi + 0x3708]
mov ecx, 0x10141620
call fcn.100ac3d0
mov ecx, dword [0x101a9c54]
add ecx, 0xffffffd8
xor ecx, 0x976fd337
add ecx, dword [edi]
mov eax, dword [ecx]
mov dword [edi + 0x688], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x68c], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x690], eax
push dword [0x101b1c70]
call fcn.100afdb0
mov ecx, dword [0x101a9a44]
mov esi, dword [0x101a9ad0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1004b544
mov eax, dword [esi]
test eax, eax
je 0x1004b544
mov al, byte [eax + 0x20]
test al, al
jne 0x1004ba2a
test byte [0x101ae59c], 0x40
jne 0x1004ba2a
lea eax, [esp + 0x24]
push eax
call fcn.10037470
lea esi, [edi + 0x3714]
movss xmm0, dword [eax]
movss dword [0x101ae5a4], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x101ae5a8], xmm0
movss xmm0, dword [eax + 8]
movss dword [0x101ae5ac], xmm0
mov ecx, dword [edi + 0x36e8]
mov eax, dword [edi + 0x36f8]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x36fc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x3700]
mov dword [ecx + 0x14], eax
movss xmm0, dword [edi + 0x36f8]
mulss xmm0, dword [0x100dcbec]
movss dword [esp + 0x20], xmm0
call fcn.10035c00
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edi + 0x36fc]
mulss xmm0, dword [0x100dcbec]
movss dword [esp + 8], xmm0
test esi, esi
je 0x1004b61f
call fcn.10035c00
mulss xmm0, dword [esp + 0xc]
movss dword [esi], xmm0
movss xmm0, dword [esp + 8]
call fcn.10035c30
mulss xmm0, dword [esp + 0xc]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x20]
call fcn.10035c30
xorps xmm0, xmmword [0x100dcff0]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov dword [edi + 0x678], 0
mov dword [edi + 0x680], 0
mov dword [edi + 0x67c], 0xffffffff
mov dword [edi + 0x684], 0xffffffff
mov byte [edi + 0x694], 0
mov byte [edi + 0x28], 0
mov ecx, dword [0x101a9d60]
add ecx, 0xffffff95
xor ecx, 0x976fd37a
mov eax, dword [ecx + eax]
mov ecx, dword [0x101a9a48]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov ecx, eax
mov dword [edi + 0x678], ecx
test ecx, ecx
je 0x1004b92f
mov eax, dword [ecx]
mov eax, dword [eax + 0x6f8]
call eax
mov esi, dword [edi + 0x678]
mov dword [edi + 0x680], eax
mov edx, dword [0x101a9d7c]
add edx, 0xffffff8e
xor edx, 0x976fd381
mov edx, dword [edx + esi]
mov dword [edi + 0x67c], edx
mov eax, dword [eax + 0xc8]
mov dword [edi + 0x684], eax
cmp eax, 9
je 0x1004b6d9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x75c]
call eax
mov eax, dword [edi + 0x684]
test eax, eax
je 0x1004b76c
cmp eax, 7
je 0x1004b76c
cmp eax, 9
je 0x1004b76c
mov eax, dword [edi]
lea edx, [esp + 0x50]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
mov eax, dword [edi + 0x680]
mov dword [esp + 0x34], 0
movss xmm2, dword [eax + 0x104]
movaps xmm1, xmm2
mov dword [esp + 0x44], 0x3f800000
mulss xmm1, dword [edi + 0x3714]
movaps xmm0, xmm2
mov dword [esp + 0x48], 0x3f800000
mulss xmm0, dword [edi + 0x3718]
mov byte [esp + 0x4c], 1
mulss xmm2, dword [edi + 0x371c]
addss xmm1, dword [edi + 0x1c]
addss xmm0, dword [edi + 0x20]
addss xmm2, dword [edi + 0x24]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm2
call fcn.100aed80
mov ecx, dword [0x101a9d08]
mov eax, dword [0x101ae588]
add ecx, 0xffffffab
mov edx, dword [edi + 0x680]
xor ecx, 0x976fd364
cmp byte [ecx + eax], 0
je 0x1004b796
movss xmm0, dword [edx + 0x130]
jmp 0x1004b79e
movss xmm0, dword [edx + 0x12c]
mov eax, dword [esp + 0x60]
movss dword [0x1014165c], xmm0
movups xmm0, xmmword [esp + 0x50]
mov ecx, dword [edi]
movups xmmword [edi + 0x3720], xmm0
mov dword [edi + 0x3730], eax
mov edx, dword [0x101a9ce4]
mov eax, dword [0x101a9aa4]
add edx, 0xffffffb4
xor edx, 0x976fd35b
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edx + ecx]
jb 0x1004b80e
mov ecx, dword [0x101a9a44]
mov esi, dword [0x101a9ad0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1004b801
mov eax, dword [esi]
test eax, eax
je 0x1004b801
mov al, byte [eax + 0x20]
test al, al
jne 0x1004b80e
test byte [0x101ae59c], 0x40
jne 0x1004b80e
mov cl, 1
jmp 0x1004b810
xor cl, cl
mov esi, dword [edi + 0x3698]
mov byte [edi + 0x28], cl
mov byte [edi + 0x36a0], 0
cmp esi, 0xffffffff
jne 0x1004b831
mov dword [edi + 0x3698], 0
xor esi, esi
cmp dword [edi + 0x67c], 0x40
jne 0x1004b90e
mov eax, dword [0x101a9d80]
mov edx, dword [edi + 0x678]
add eax, 0xffffff8d
xor eax, 0x976fd382
cmp dword [eax + edx], 1
jl 0x1004b90e
test cl, cl
je 0x1004b90e
mov eax, dword [0x101a9d94]
add eax, 0xffffff88
xor eax, 0x976fd387
movss xmm0, dword [eax + edx]
mov eax, dword [0x101a9aa4]
comiss xmm0, dword [eax + 0x10]
ja 0x1004b90e
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x100dcf00]
push ecx
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm0, dword [0x100dcf68]
add esp, 4
fstp dword [esp + 8]
divss xmm0, dword [esp + 8]
cvttss2si eax, xmm0
not eax
mov dword [edi + 0x369c], eax
cmp eax, esi
jne 0x1004b8dc
mov dword [edi + 0x3698], 0xffffffff
mov byte [edi + 0x36a0], 1
jmp 0x1004b922
jle 0x1004b8e8
mov eax, dword [edi + 0x36e8]
or dword [eax + 0x30], 1
mov ecx, dword [edi + 0x36e8]
test byte [ecx + 0x30], 1
je 0x1004b918
mov eax, dword [edi + 0x3698]
inc eax
mov dword [edi + 0x3698], eax
test eax, eax
jle 0x1004b922
and dword [ecx + 0x30], 0xfffff7ff
jmp 0x1004b922
mov dword [edi + 0x369c], 0
mov dword [edi + 0x3698], 0
mov ecx, edi
call fcn.1004c6c0
mov byte [edi + 0x694], al
cmp byte [0x10123c5d], 0
mov eax, dword [0x101b513c]
mov dword [0x101b5140], eax
mov eax, dword [0x101b5148]
mov dword [0x101b515c], 0
mov dword [0x101b5160], 0
mov dword [0x101b5164], 0
mov dword [0x101b5174], 0
mov dword [0x101b5178], 0
mov dword [0x101b517c], 0
mov dword [0x101b5168], 0
mov dword [0x101b516c], 0
mov dword [0x101b5170], 0
mov dword [0x101b5154], 0
mov dword [0x101b5158], 0
mov dword [0x101b514c], eax
je 0x1004ba11
cmp byte [0x101ae597], 0
je 0x1004ba11
cmp dword [0x101aec0c], 9
jne 0x1004ba11
mov ecx, dword [0x101a9d9c]
mov eax, dword [0x101aec04]
add ecx, 0xffffff86
mov dword [0x101b5138], eax
xor ecx, 0x976fd389
mov eax, dword [0x101aec00]
movss xmm0, dword [ecx + eax]
mov eax, dword [0x101aec08]
movss dword [0x101b5158], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [0x101b5154], xmm0
call fcn.100923b0
mov ecx, 0x10141fa0
call fcn.1009ee70
mov ecx, 0x10142018
call fcn.10039c60
call fcn.1009e890
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100c8fa5
mov esp, ebp
pop ebp
ret