Function at 0x1002d420
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 0x100f407d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x101110c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x101ae65c]
movss xmm0, dword [0x10106004]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], 1
cmp dword [eax + 0x18], 1
mov dword [ebp - 0x28], ecx
movss dword [ebp - 0x24], xmm0
jl 0x1002d805
nop dword [eax]
cmp dword [ecx], 3
jl 0x1002d4b4
push 0
push dword [0x10134afc]
push dword [0x10134af8]
call fcn.100f25e0
cmp eax, dword [0x10134afc]
jne 0x1002d805
mov ecx, dword [0x101ae600]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1002d7e6
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x1002d7e6
mov eax, dword [0x101ae860]
add eax, 0xffffffcb
xor eax, 0x2f303c75
cmp dword [eax + edi], 0
jne 0x1002d7e6
mov eax, dword [0x101ae798]
cmp byte [eax + edi], 0
jne 0x1002d7e6
mov ecx, dword [0x101ae838]
mov edx, dword [0x10130e2c]
add ecx, 0xffffffd5
xor ecx, 0x2f303c6b
mov eax, dword [ecx + edi]
cmp eax, dword [ecx + edx]
jne 0x1002d543
mov ecx, dword [0x101ae6d4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x1002d7e6
mov edx, dword [0x10130e2c]
imul edi, dword [ebp - 0x1c], 0xe8
add edi, 0xffffff18
add edi, esi
mov dword [ebp - 0x20], edi
je 0x1002d7e6
cmp dword [edi + 0x18], 0
je 0x1002d7e6
mov eax, dword [0x101358b4]
cmp eax, 0xffffffff
je 0x1002d581
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x101454b0]
test al, al
jne 0x1002d63a
mov eax, dword [0x101ae820]
mov ecx, dword [ebp - 0x18]
add eax, 0xffffffdb
xor eax, 0x2f303c65
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 [0x10105f44]
xorps xmm0, xmm0
comiss xmm1, xmm0
jb 0x1002d5d5
addss xmm2, dword [0x10105f84]
mov eax, dword [0x101311a8]
lea ecx, [ebp - 0x18]
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm2
movss dword [ebp - 0x18], xmm0
call fcn.100d7610
movss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm1
call fcn.1002a3d0
movss xmm2, dword [ebp - 0x24]
comiss xmm2, xmm0
ja 0x1002d614
ucomiss xmm2, dword [0x10106004]
lahf
test ah, 0x44
jp 0x1002d63a
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x64a54], eax
xor eax, eax
movss dword [ebp - 0x24], xmm0
xorps xmm0, xmm0
comiss xmm1, xmm0
seta al
lea eax, [eax*2 - 1]
mov dword [esi + 0x64a58], eax
push 0
push dword [0x10134afc]
push dword [0x10134af8]
call fcn.100f25e0
cmp eax, dword [0x10134afc]
je 0x1002d67b
mov ecx, dword [esi + 0x3a0c]
mov edx, dword [esi + 0x3a10]
cmp ecx, edx
je 0x1002d67b
mov eax, dword [ebp - 0x1c]
dec eax
nop dword [eax]
cmp eax, dword [ecx]
je 0x1002d6d8
add ecx, 4
cmp ecx, edx
jne 0x1002d670
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
dec ecx
and ecx, dword [edi + 0x14]
push dword [eax + ecx*4]
mov ecx, esi
push edi
call fcn.1002c8e0
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
dec ecx
and ecx, dword [edi + 0x14]
push dword [eax + ecx*4]
mov ecx, esi
push edi
call fcn.1002d240
test al, al
jne 0x1002d7e6
mov eax, dword [ebp - 0x28]
lea ecx, [esi + 0x3a00]
inc dword [eax]
mov eax, dword [esi + 0x3a04]
cmp eax, dword [esi + 0x3a08]
je 0x1002d7ac
mov dword [eax], edi
add dword [esi + 0x3a04], 4
jmp 0x1002d7b6
movaps xmm0, xmmword [0x10106ba0]
mov eax, 0x10
xorps xmm0, xmmword [0x10107160]
mov dword [ebp - 0x2c], 0xc2b1e7e2
movups xmmword [ebp - 0x3c], xmm0
xor byte [ebp + eax - 0x3c], 0xc2
inc eax
cmp eax, 0x14
jb 0x1002d6f6
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x54]
call fcn.10033320
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x64a1c]
cmp ecx, dword [esi + 0x64a20]
je 0x1002d766
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
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 [esi + 0x64a1c], 0x18
jmp 0x1002d773
push eax
push ecx
lea ecx, [esi + 0x64a18]
call fcn.10034bd0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x1002d7e6
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002d7a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002d7ff
push ecx
push edx
call fcn.100f2c1b
add esp, 8
jmp 0x1002d7e6
lea edx, [ebp - 0x20]
push edx
push eax
call fcn.10034150
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x3a10]
dec ecx
mov dword [ebp - 0x20], ecx
cmp eax, dword [esi + 0x3a14]
je 0x1002d7d6
mov dword [eax], ecx
add dword [esi + 0x3a10], 4
jmp 0x1002d7e6
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0x3a0c]
call fcn.100342b0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x101ae65c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [eax + 0x18]
jg 0x1002d805
mov ecx, dword [ebp - 0x28]
jmp 0x1002d490
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.100f27a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4