Function at 0x10020060
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed90d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x1010b0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x101a8a74]
mov esi, 1
movss xmm0, dword [0x100ff994]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], ecx
movss dword [ebp - 0x2c], xmm0
cmp dword [eax + 0x18], esi
jl 0x1002047d
nop dword [eax]
cmp dword [ecx], 3
jl 0x100200fa
mov eax, dword [0x10130440]
mov ecx, dword [0x10130444]
cmp eax, ecx
je 0x100200fa
cmp dword [eax], 0
je 0x100200f2
add eax, 4
cmp eax, ecx
jne 0x100200e4
jmp 0x100200fa
cmp eax, ecx
jne 0x1002047d
mov ecx, dword [0x101a8a18]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1002045e
mov ecx, dword [esi]
mov edx, dword [ecx + 0x260]
mov ecx, esi
call edx
test al, al
je 0x1002045e
mov eax, dword [0x101a8c50]
add eax, 0xffffffcb
xor eax, 0x42c871d2
cmp dword [eax + esi], 0
jne 0x1002045e
mov eax, dword [0x101a8bb0]
mov al, byte [eax + esi]
test al, al
jne 0x1002045e
mov ecx, dword [0x101a8c28]
mov edx, dword [0x1012ae84]
add ecx, 0xffffffd5
xor ecx, 0x42c871c8
mov eax, dword [ecx + esi]
cmp eax, dword [ecx + edx]
jne 0x10020182
mov ecx, dword [0x101a8aec]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x1002045e
mov esi, dword [ebp - 0x20]
lea edx, [edi - 0xe8]
imul eax, esi, 0xe8
add edx, eax
mov dword [ebp - 0x24], edx
je 0x10020461
cmp dword [edx + 0x18], 0
je 0x10020461
mov eax, dword [0x101311fc]
cmp eax, 0xffffffff
je 0x100201c2
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x10140ea0]
test al, al
jne 0x10020281
mov eax, dword [0x101a8c10]
mov edx, dword [0x1012ae84]
add eax, 0xffffffdb
mov ecx, dword [ebp - 0x18]
xor eax, 0x42c871c2
movss xmm1, dword [eax + edx]
movss xmm0, dword [eax + edx + 4]
subss xmm1, dword [eax + ecx]
subss xmm0, dword [eax + ecx + 4]
movss dword [ebp - 0x18], xmm1
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movss xmm1, dword [ebp - 0x18]
movaps xmm2, xmm0
mulss xmm2, dword [0x100ff8d4]
xorps xmm0, xmm0
comiss xmm1, xmm0
jb 0x1002021c
addss xmm2, dword [0x100ff91c]
mov eax, dword [0x1012b200]
lea ecx, [ebp - 0x18]
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm2
movss dword [ebp - 0x18], xmm0
call fcn.100d1220
movss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm1
call fcn.1001cdd0
movss xmm2, dword [ebp - 0x2c]
comiss xmm2, xmm0
ja 0x1002025b
ucomiss xmm2, dword [0x100ff994]
lahf
test ah, 0x44
jp 0x1002027e
movss dword [ebp - 0x2c], xmm0
xor eax, eax
xorps xmm0, xmm0
mov dword [edi + 0x64a54], esi
comiss xmm1, xmm0
seta al
lea eax, [eax*2 - 1]
mov dword [edi + 0x64a58], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [0x10130440]
mov ecx, dword [0x10130444]
mov byte [ebp - 0x25], 0
cmp eax, ecx
je 0x100202a4
cmp dword [eax], 0
je 0x10020340
add eax, 4
cmp eax, ecx
jne 0x10020294
mov al, byte [ebp - 0x25]
test al, al
je 0x100203c8
movaps xmm0, xmmword [0x100ffa80]
mov eax, 0x10
pxor xmm0, xmmword [0x100fff30]
mov dword [ebp - 0x34], 0x97a2c29
movups xmmword [ebp - 0x44], xmm0
nop
xor byte [ebp + eax - 0x44], 9
inc eax
cmp eax, 0x14
jb 0x100202d0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.10026370
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x64a1c]
cmp ecx, dword [edi + 0x64a20]
je 0x10020377
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edi + 0x64a1c], 0x18
jmp 0x10020384
cmp eax, ecx
je 0x100202a4
mov eax, dword [edi + 0x3a0c]
mov ecx, dword [edi + 0x3a10]
cmp eax, ecx
je 0x100202a4
dec esi
nop dword [eax]
cmp esi, dword [eax]
je 0x10020370
add eax, 4
cmp eax, ecx
jne 0x10020360
jmp 0x100202a4
mov al, 1
jmp 0x100202a7
push eax
push ecx
lea ecx, [edi + 0x64a18]
call fcn.100270c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x1002045e
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100203b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020477
push edx
push ecx
call fcn.100eb980
add esp, 8
jmp 0x1002045e
mov eax, dword [edx + 0x10]
lea esi, [edx + 8]
mov ecx, dword [esi + 0xc]
dec eax
and ecx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
push dword [eax + ecx*4]
mov ecx, edi
push edx
call fcn.1001f510
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
dec eax
and ecx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x24]
push dword [eax + ecx*4]
mov ecx, edi
push esi
call fcn.1001fe80
test al, al
jne 0x1002045e
mov eax, dword [ebp - 0x30]
lea ecx, [edi + 0x3a00]
inc dword [eax]
mov eax, dword [edi + 0x3a04]
cmp eax, dword [edi + 0x3a08]
je 0x10020427
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x10020431
lea edx, [ebp - 0x24]
push edx
push eax
call fcn.100264b0
mov edx, dword [ebp - 0x20]
lea ecx, [edi + 0x3a0c]
mov eax, dword [edi + 0x3a10]
dec edx
mov dword [ebp - 0x18], edx
cmp eax, dword [edi + 0x3a14]
je 0x10020454
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x1002045e
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.10026610
mov esi, dword [ebp - 0x20]
mov eax, dword [0x101a8a74]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, dword [eax + 0x18]
jg 0x1002047d
mov ecx, dword [ebp - 0x30]
jmp 0x100200d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100eb505
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4