Function at 0x4504fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5191a4
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [section..data]
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 esi, ecx
push 0x1194
push esi
mov dword [ebp - 0x2b8], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], ebx
push 0x4c
mov byte [ebp - 4], 1
mov dword [esi + 0x24], ebx
call fcn.00403b92
add esp, 4
cmp eax, ebx
je 0x450988
mov dword [esi + 0x20], eax
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x20]
mov byte [eax + 0x48], 1
mov ecx, dword [esi + 0x20]
mov byte [ecx + 0x49], 1
mov dword [esi + 0x2c], ebx
push 0x13
xor edx, edx
mov edi, 7
push str.kic.settingsencrypt
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
call fcn.0040392d
mov eax, dword [esi + 0x2c]
push eax
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 4
call fcn.004519c7
push str.cache
push 1
push str.defalt:
lea ecx, [ebp - 0x238]
push ecx
push str.KIC::SettingsImpl::querySwitch
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00451af7
mov ecx, eax
call fcn.00451960
mov ecx, eax
call fcn.00451af7
mov ecx, eax
call fcn.0045190f
mov ecx, eax
call fcn.00451af7
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 4
call fcn.00451a73
push ebx
push 1
lea edx, [ebp - 0x238]
push edx
mov ecx, esi
call fcn.0044ffb5
cmp dword [ebp - 0x224], 8
mov byte [0x562210], al
mov byte [ebp - 4], 3
jb 0x450648
mov eax, dword [ebp - 0x238]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
push 0xf
mov word [ebp - 0x238], cx
push str.kic.settingslog
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
call fcn.0040392d
mov eax, dword [esi + 0x2c]
push eax
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 6
call fcn.004519c7
push str.cache
push ebx
push str.defalt:
lea edx, [ebp - 0x238]
push edx
push str.KIC::SettingsImpl::querySwitch
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00451af7
mov ecx, eax
call fcn.00451960
mov ecx, eax
call fcn.00451af7
mov ecx, eax
call fcn.0045190f
mov ecx, eax
call fcn.00451af7
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 6
call fcn.00451a73
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.0044ffb5
cmp dword [ebp - 0x224], 8
mov byte [ebp - 0x2a9], al
mov byte [ebp - 4], 3
jb 0x450701
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00404f7d
add esp, 4
cmp byte [ebp - 0x2a9], bl
je 0x45096a
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21c], dx
call fcn.00402e70
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], dx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push eax
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 9
call fcn.0041fa68
add esp, 0xc
push eax
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0xa
call fcn.00403fa0
cmp dword [ebp - 0x240], 8
jb 0x450794
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00404f7d
add esp, 4
mov dword [ebp - 4], 8
jmp 0x4507b7
xor edx, edx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x238], dx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
lea edx, [eax + 2]
jmp 0x4507dd
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4507dd
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040392d
push str.kicsettingslog_
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 0xc
call fcn.00405b23
lea ecx, [ebp - 0x28c]
push ecx
push eax
lea edx, [ebp - 0x2a8]
push edx
mov byte [ebp - 4], 0xd
call fcn.0040c156
push 0x531158
push eax
lea eax, [ebp - 0x270]
push eax
mov byte [ebp - 4], 0xe
call fcn.00405b23
add esp, 0x24
cmp dword [ebp - 0x294], 8
jb 0x450864
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x298], ebx
mov word [ebp - 0x2a8], dx
cmp dword [ebp - 0x240], 8
jb 0x450891
mov eax, dword [ebp - 0x254]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
cmp dword [ebp - 0x224], 8
mov byte [ebp - 4], 0x12
jb 0x4508c2
mov edx, dword [ebp - 0x238]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
push 8
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
call fcn.00403b92
add esp, 4
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 0x13
cmp eax, ebx
je 0x450901
lea ecx, [ebp - 0x270]
push ecx
mov ecx, eax
call fcn.00452298
mov edi, eax
jmp 0x450903
xor edi, edi
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 4], 0x12
cmp edi, ecx
je 0x45091e
cmp ecx, ebx
je 0x45091b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x2c], edi
mov edi, 8
cmp dword [ebp - 0x25c], edi
jb 0x45093a
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x270], dx
cmp dword [ebp - 0x278], edi
jb 0x45096a
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00404f7d
add esp, 4
mov eax, esi
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.0040330b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2b0]
push ecx
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b0], ebx
call fcn.00453777
push 0x51f590
lea edx, [ebp - 0x2c4]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004538da
int3