Function at 0x100839c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a21d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1039b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10083bee
cmp dword [0x103bd0d4], 0
je 0x10083bee
mov eax, dword [0x103bce20]
mov edi, dword [ecx + 8]
mov ecx, dword [0x1039d33c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a0900]
cmp eax, dword [ecx + 4]
jle 0x10083a8b
push 0x103a0900
call fcn.10125de2
add esp, 4
cmp dword [0x103a0900], 0xffffffff
jne 0x10083a8b
mov edx, 0x9280a968
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10036790
push 0xec5ba5ce
mov edx, eax
mov ecx, 0x103a0904
call fcn.10036ba0
add esp, 4
push 0x101a9300
call fcn.10125ca2
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x103a0900
call fcn.10125d91
add esp, 4
mov eax, dword [0x103a0904]
call eax
mov ecx, eax
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x10083afa
test ecx, ecx
je 0x10083afa
mov edi, dword [edi + 0x18]
test edi, edi
je 0x10083afa
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
and eax, 0xffffff
push eax
call edx
mov ebx, eax
test ebx, ebx
je 0x10083aee
mov ecx, ebx
mov esi, 0x81cc9dc5
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10083ac5
sub ecx, edx
mov edx, 0
je 0x10083aee
movsx eax, byte [ebx + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1100192
cmp edx, ecx
jb 0x10083ad5
cmp esi, 0x59d4d0cc
je 0x10083afc
mov edi, dword [edi + 0x14]
test edi, edi
je 0x10083afa
mov ecx, dword [ebp - 0x10]
jmp 0x10083aa6
xor edi, edi
movsx eax, byte [edi + 0x10]
dec eax
cmp eax, 6
ja case.0x10083b06.2
jmp dword [eax*4 + 0x10083c04]
push dword [edi + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
jmp 0x10083b4b
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
jmp 0x10083b4b
fld dword [edi + 0xc]
sub esp, 8
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp dword [ebp - 0x10]
cvttss2si eax, dword [ebp - 0x10]
add esp, 8
jmp 0x10083b4b
xor eax, eax
jmp 0x10083b4b
mov eax, dword [edi + 0xc]
mov ecx, dword [0x103bce20]
push eax
call dword [ebp - 0x14]
mov ecx, dword [0x103bce20]
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 0x30]
cmp esi, eax
jne 0x10083bee
mov ecx, dword [0x103a829c]
xor edx, edx
mov esi, dword [0x103a82a0]
movss xmm2, dword [0x1038dd84]
add esi, ecx
cmp ecx, esi
je 0x10083bee
mov edi, dword [0x103a8294]
mov ebx, dword [0x103a8298]
movss xmm3, dword [0x1038d99c]
nop word [eax + eax]
lea eax, [ebx - 1]
and eax, ecx
mov eax, dword [edi + eax*4]
cmp byte [eax + 0x45], 0
jne 0x10083be1
movss xmm1, dword [eax + 0x40]
mov edi, dword [0x103bce78]
addss xmm1, dword [eax + 0x3c]
movss xmm0, dword [edi + 0x10]
subss xmm0, xmm1
call fcn.10048240
comiss xmm0, xmm3
mov edi, dword [0x103a8294]
ja 0x10083be1
comiss xmm2, xmm0
jbe 0x10083be1
movaps xmm2, xmm0
mov edx, eax
inc ecx
cmp ecx, esi
jne 0x10083ba0
test edx, edx
je 0x10083bee
mov byte [edx + 0x45], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4