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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436897
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
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 edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1a
lea eax, [ebp - 0x258]
push eax
push ebx
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [esi + 0x14], 8
jb 0x405600
mov eax, dword [esi]
jmp 0x405602
mov eax, esi
push eax
lea ecx, [ebp - 0x258]
push ecx
push str._s_s
mov edx, ecx
call fcn.00404770
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405638
push ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esi + 0x1c]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x405647
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x258]
push ecx
push str._s_s
mov edx, ecx
call fcn.00404770
lea edx, [ebp - 0x2c8]
push edi
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, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2b4], 0x10
mov eax, dword [ebp - 0x2c8]
jae 0x405683
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x274]
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], esi
jb 0x40569a
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x258]
push ecx
push eax
push str.LastConnect
push str.ConnectSetting
call esi
mov edi, 8
cmp dword [ebp - 0x260], edi
jb 0x4056d0
mov edx, dword [ebp - 0x274]
push edx
call fcn.0041bfc5
add esp, 4
push 0x3f
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.00426cd0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x50]
push 0x43bd38
push edx
call fcn.0041b6ac
lea eax, [ebp - 0x50]
add esp, 0x18
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], ebx
mov byte [ebp - 0x290], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405710
sub eax, edx
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x290]
call fcn.004028b2
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x274]
push edx
mov byte [ebp - 4], 1
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], 2
cmp dword [eax + 0x14], 0x10
jb 0x40574f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2ac]
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 0x405766
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
push ecx
push eax
push str.LastSMode
push str.ConnectSetting
call esi
cmp dword [ebp - 0x298], edi
jb 0x405791
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.0041bfc5
add esp, 4
xor eax, eax
cmp dword [ebp - 0x260], 0x10
mov edi, 7
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x29c], ebx
mov word [ebp - 0x2ac], ax
jb 0x4057c3
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.0041bfc5
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x27c], 0x10
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], ebx
mov byte [ebp - 0x274], bl
jb 0x4057f4
mov edx, dword [ebp - 0x290]
push edx
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x50]
push 0x43bd38
push ecx
call fcn.0041b6ac
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], ebx
mov byte [ebp - 0x290], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405825
sub eax, edx
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x290]
call fcn.004028b2
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
mov byte [ebp - 4], 3
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], 4
cmp dword [eax + 0x14], 0x10
jb 0x405864
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x274]
push edx
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], 8
jb 0x40587c
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
push ecx
push eax
push str.LastLMode
push str.ConnectSetting
call esi
cmp dword [ebp - 0x260], 8
jb 0x4058a8
mov edx, dword [ebp - 0x274]
push edx
call fcn.0041bfc5
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x274], ax
cmp dword [ebp - 0x298], esi
jb 0x4058d9
mov ecx, dword [ebp - 0x2ac]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 0x298], 0xf
mov dword [ebp - 0x29c], ebx
mov byte [ebp - 0x2ac], bl
cmp dword [ebp - 0x27c], esi
jb 0x405906
mov edx, dword [ebp - 0x290]
push edx
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x2b4], esi
jb 0x40591d
mov eax, dword [ebp - 0x2c8]
push eax
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 0xc