Function at 0x406080
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435da4
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x4060d0
mov eax, dword [esi]
jmp 0x4060d2
mov eax, esi
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s
mov edx, ecx
call fcn.00404770
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406108
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x406112
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s
mov edx, ecx
call fcn.00404770
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.00426cd0
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0x43c02c
push str.QuitSuccess
push str.ConnectSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x43c02c
lea eax, [ebp - 0x420]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40619d
test dx, dx
je 0x406199
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40619d
add eax, 4
add ecx, 4
test dx, dx
jne 0x406177
xor eax, eax
jmp 0x4061a2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4062bb
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x458]
push ecx
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KpBase::ws2s_wchar_t_const__
push eax
lea edx, [ebp - 0x43c]
push edx
mov dword [ebp - 4], 0
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_AyDecrypt::DecryptIni_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0x10
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x444], edi
jb 0x4061f4
mov eax, dword [ebp - 0x458]
push eax
call fcn.0041bfc5
add esp, 4
mov esi, dword [ebp - 0x43c]
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
cmp dword [ebp - 0x428], edi
jae 0x406223
lea esi, [ebp - 0x43c]
mov eax, dword [sym.jsService.exe_class_FileLogger__FileLogger::m_pThis]
test eax, eax
jne 0x40625b
push 0x15c
call fcn.0041c0fb
add esp, 4
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x406250
mov ecx, eax
call sym.jsService.exe_private:_void___thiscall_FileLogger::constructor_void_
jmp 0x406252
xor eax, eax
mov byte [ebp - 4], 2
mov dword [sym.jsService.exe_class_FileLogger__FileLogger::m_pThis], eax
push esi
push str.AppSetting::getQuitSuccess__s
push eax
call sym.jsService.exe_public:_void___cdecl_FileLogger::addLogV_char_const__
mov eax, dword [ebp - 0x42c]
add esp, 0xc
push 0xb
mov ecx, str.TRUE_aytrue
lea edx, [ebp - 0x43c]
call fcn.004090b0
test eax, eax
jne 0x4062a4
cmp dword [ebp - 0x428], edi
jb 0x40629d
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.0041bfc5
add esp, 4
mov eax, 1
jmp 0x4062bd
cmp dword [ebp - 0x428], edi
jb 0x4062bb
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041bfc5
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret