Function at 0x4b8a80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd0f
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x298], edi
push 0x1194
push edi
mov dword [ebp - 0x2a0], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x298], esi
push 0x44
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c6f3f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x24], 0
push 0x13
xor eax, eax
mov dword [ebp - 0x234], 0
push str.kic.settingsencrypt
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00403a70
push dword [edi + 0x24]
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 4
call fcn.004ba670
push str.KIC::SettingsImpl::querySwitch
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004ba9f0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
call fcn.004ba7e0
push str.defalt:
mov ecx, eax
call fcn.004ba9f0
push 1
mov ecx, eax
call fcn.004bab60
push str.cache
mov ecx, eax
call fcn.004ba9f0
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 4
call fcn.004ba780
push 0
push 1
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
call fcn.004b9410
mov edx, dword [ebp - 0x220]
mov byte [0x567cd0], al
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4b8c0e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8c04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b8c04
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push 0xf
xor eax, eax
mov dword [ebp - 0x234], 0
push str.kic.settingslog
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00403a70
push dword [edi + 0x24]
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.004ba670
push str.KIC::SettingsImpl::querySwitch
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004ba9f0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
call fcn.004ba7e0
push str.defalt:
mov ecx, eax
call fcn.004ba9f0
push 0
mov ecx, eax
call fcn.004bab60
push str.cache
mov ecx, eax
call fcn.004ba9f0
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.004ba780
push 0
push 0
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
call fcn.004b9410
mov edx, dword [ebp - 0x220]
mov bl, al
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4b8d01
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8cf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b8cf7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test bl, bl
je 0x4b913c
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor esi, esi
mov dword [ebp - 0x24c], 0
mov ebx, 7
mov dword [ebp - 0x23c], esi
xor eax, eax
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x24c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 9
push eax
call fcn.004b30b0
mov ecx, eax
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp eax, ecx
je 0x4b8dc7
mov eax, dword [ecx]
mov esi, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x24c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x248], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x244], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x4b8e23
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b8dff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
jmp 0x4b8e23
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 8
mov dword [ebp - 0x224], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8e60
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00403a70
push str.kicsettingslog_
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0040e0e0
add esp, 0xc
cmp ebx, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24c]
cmovae ecx, dword [ebp - 0x24c]
push esi
push ecx
mov ecx, eax
call fcn.004038f0
mov ecx, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov eax, dword [ecx]
mov dword [ebp - 0x264], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x260], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x258], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x254], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x250], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
push 0x534c50
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0040e0e0
add esp, 0xc
mov edx, dword [ebp - 0x250]
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x4b8f89
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8f7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9039
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
mov edx, dword [ebp - 0x268]
mov byte [ebp - 4], 0x10
cmp edx, 8
jb 0x4b8fe6
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8fdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9039
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 0x11
cmp edx, 8
jb 0x4b9049
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b903f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b903f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
push 8
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.004c6f3f
add esp, 4
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x4b908e
lea ecx, [ebp - 0x294]
push ecx
mov ecx, eax
call fcn.004babc0
jmp 0x4b9090
xor eax, eax
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x4b90a1
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x4b90dd
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b90d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b912c
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
cmp edx, 8
jb 0x4b913c
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b9132
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b9132
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret