Function at 0x10011ee0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101c5068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push eax
mov dword [ebp - 0x228], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10136dcd
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011f32
push ebx
sub ecx, edx
lea eax, [ebp - 0x20c]
push edi
sar ecx, 1
lea ebx, [esi + 4]
push ecx
push eax
mov ecx, ebx
call fcn.10009a50
mov ecx, esi
call fcn.10012210
cmp dword [esi + 0x30], 8
lea edi, [esi + 0x1c]
mov eax, edi
jb 0x10011f69
mov eax, dword [edi]
push 0x10161760
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10012790
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011fa3
lea eax, [ebp - 0x20c]
push eax
call fcn.10017821
add esp, 4
add esi, 0x34
cmp esi, ebx
je 0x10011fbf
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10011fb4
mov eax, dword [ebx]
push dword [ebx + 0x10]
mov ecx, esi
push eax
call fcn.10009a50
push 0xa
push str.HKTcsc.ini
mov ecx, esi
call fcn.1000c610
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x22c], edi
jb 0x10011fe3
mov ecx, dword [edi]
mov dword [ebp - 0x22c], ecx
mov eax, dword [edi + 0x10]
cmp eax, 0xd
jb 0x10012012
add eax, 0xfffffff4
lea eax, [ecx + eax*2]
mov dword [ebp - 0x230], eax
sub eax, ecx
sar eax, 1
je 0x10012012
nop dword [eax]
cmp word [ecx], 0x73
je 0x100120a8
add ecx, 2
sub eax, 1
jne 0x10012000
mov esi, dword [ebp - 0x228]
cmp dword [esi + 0x48], 8
lea ebx, [esi + 0x34]
mov eax, ebx
jb 0x10012025
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1001568a
mov edi, eax
add esi, 0x4c
add esp, 8
cmp esi, edi
je 0x10012068
mov ecx, esi
call fcn.1000c5b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x10012123
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012205
jmp 0x10012119
test ecx, ecx
je 0x10012012
mov edx, str.systemprofile
mov edi, ecx
mov esi, 0xd
sub edi, edx
nop
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x1001210b
add edx, 2
sub esi, 1
jne 0x100120c0
sub ecx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x228]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10012018
lea ecx, [esi + 0x1c]
cmp ecx, ebx
je 0x10012018
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100120fd
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.10009a50
jmp 0x10012018
mov eax, dword [ebp - 0x230]
add ecx, 2
jmp 0x10011ff7
push edx
push ecx
call fcn.10026a62
add esp, 8
push 6
push 0x10161760
mov ecx, esi
call fcn.1000c610
push 1
push 0x10161770
mov ecx, esi
call fcn.1000c610
push 0xa
push str.HKTcsc.ini
mov ecx, esi
call fcn.1000c610
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10012157
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10012173
cmp dword [esi + 0x14], 8
jb 0x1001216a
mov esi, dword [esi]
push esi
call fcn.10017821
add esp, 4
mov esi, dword [ebp - 0x228]
mov ecx, esi
call fcn.100124f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10136bc0
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x1001219e
mov ebx, dword [ebx]
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1016231c
push str.70c90
push str.StSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x20c]
pop edi
lea edx, [ecx + 2]
pop ebx
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100121d0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x7c]
call fcn.10009a50
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10026dd3
mov esp, ebp
pop ebp
ret 4
call fcn.1013a0b9
int3