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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4367c6
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 0x406338
mov eax, dword [esi]
jmp 0x40633a
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 0x406370
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 0x40637a
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 + 8]
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 0x4063be
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 0x4063d5
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 0x406406
mov eax, dword [ebp - 0x234]
push eax
call fcn.0041bfc5
add esp, 4
cmp dword [ebp + 0x40], 0
je 0x406494
lea ecx, [ebp + 0x24]
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 0x40643b
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 0x406452
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 0x40647d
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x220], ebx
jb 0x406494
mov eax, dword [ebp - 0x234]
push eax
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x23c], ebx
jb 0x4064ab
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0041bfc5
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
cmp dword [ebp + 0x1c], ebx
jb 0x4064d8
mov edx, dword [ebp + 8]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], ebx
jb 0x4064f7
mov eax, dword [ebp + 0x24]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, 1
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 0x3c