Function at 0x404960
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4368e6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x4049b8
mov eax, dword [esi]
jmp 0x4049ba
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 0x4049f0
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 0x4049fa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s
mov edx, ecx
call fcn.00404770
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x250]
push eax
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_AyDecrypt::EncryptIni_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0x14
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x250]
mov ebx, 0x10
cmp dword [ebp - 0x23c], ebx
jae 0x404a3e
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
push ecx
call sym.jsService.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_KpBase::s2ws_char_const__
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x404a55
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [ebp - 0x218]
push edx
push eax
push str.UserName
push str.BaseSetting
call esi
cmp dword [ebp - 0x220], edi
jb 0x404a86
mov eax, dword [ebp - 0x234]
push eax
call fcn.0041bfc5
add esp, 4
cmp dword [ebp + 8], 0
je 0x404b2e
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x234]
push edx
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_AyDecrypt::EncryptIni_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x404abb
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x26c]
push eax
call sym.jsService.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_KpBase::s2ws_char_const__
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x404ad2
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.PassWord
push str.BaseSetting
call esi
cmp dword [ebp - 0x258], edi
jb 0x404afd
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0041bfc5
add esp, 4
lea eax, [ebp - 0x218]
push eax
push str.TRUE
push str.RememberPWD
push str.BaseSetting
call esi
cmp dword [ebp - 0x220], ebx
jb 0x404b5e
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0041bfc5
add esp, 4
jmp 0x404b5e
lea edx, [ebp - 0x218]
push edx
push 0x43c02c
push str.PassWord
push str.BaseSetting
call esi
lea eax, [ebp - 0x218]
push eax
push 0x43c030
push str.RememberPWD
push str.BaseSetting
call esi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x404b73
lea ecx, [ebp - 0x218]
push ecx
push str.TRUE
jmp 0x404b7f
lea edx, [ebp - 0x218]
push edx
push 0x43c030
push str.AutoLogin
push str.BaseSetting
call esi
cmp dword [ebp - 0x23c], ebx
jb 0x404ba2
mov eax, dword [ebp - 0x250]
push eax
call fcn.0041bfc5
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
mov byte [ebp - 0x250], 0
cmp dword [ebp + 0x24], ebx
jb 0x404bcb
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], edi
mov byte [ebp + 0x10], 0
cmp dword [ebp + 0x40], ebx
jb 0x404be6
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0041bfc5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 0x40