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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435e5c
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x45a6d0]
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 eax, dword [ebp + 8]
push 0
mov esi, ecx
push 0x1a
lea ecx, [ebp - 0x424]
push ecx
push 0
mov dword [ebp - 0x498], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x404ffa
mov eax, dword [esi]
jmp 0x404ffc
mov eax, esi
push eax
lea edx, [ebp - 0x424]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405030
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x40503a
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x424]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x43c02c
push str.UserName
push str.BaseSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405080
sub eax, edx
sar eax, 1
mov ebx, 0x10
je 0x405178
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x478]
push eax
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 ecx, [ebp - 0x440]
push ecx
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, eax
mov esi, dword [ebp - 0x498]
add esi, 0x1c
cmp esi, edi
je 0x405128
cmp dword [esi + 0x14], ebx
jb 0x4050e3
mov eax, dword [esi]
push eax
call fcn.0041bfc5
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [edi + 0x14], ebx
jae 0x40510a
mov eax, dword [edi + 0x10]
inc eax
push eax
push edi
push esi
call fcn.0041b8d0
add esp, 0xc
jmp 0x405114
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x42c], ebx
jb 0x40513f
mov edx, dword [ebp - 0x440]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
cmp dword [ebp - 0x464], ebx
jb 0x405178
mov eax, dword [ebp - 0x478]
push eax
call fcn.0041bfc5
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x424]
push ecx
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x43c030
push str.RememberPWD
push str.BaseSetting
call esi
mov ecx, str.TRUE
lea eax, [ebp - 0x21c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4051d6
test dx, dx
je 0x4051d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4051d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4051b0
xor eax, eax
jmp 0x4051db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40530e
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x424]
push ecx
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x43c02c
push str.PassWord
push str.BaseSetting
mov dword [eax], 1
call esi
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405220
sub eax, edx
sar eax, 1
je 0x40531a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x494]
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 - 0x45c]
push edx
mov dword [ebp - 4], 2
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, eax
mov esi, dword [ebp - 0x498]
add esi, 0x38
cmp esi, edi
je 0x4052c3
cmp dword [esi + 0x14], ebx
jb 0x40527e
mov eax, dword [esi]
push eax
call fcn.0041bfc5
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [edi + 0x14], ebx
jae 0x4052a5
mov ecx, dword [edi + 0x10]
inc ecx
push ecx
push edi
push esi
call fcn.0041b8d0
add esp, 0xc
jmp 0x4052af
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x448], ebx
jb 0x4052da
mov edx, dword [ebp - 0x45c]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 0x448], 0xf
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
cmp dword [ebp - 0x480], ebx
jb 0x40531a
mov eax, dword [ebp - 0x494]
push eax
call fcn.0041bfc5
add esp, 4
jmp 0x40531a
mov ecx, dword [ebp - 0x498]
mov dword [ecx], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x424]
push edx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43c030
push str.AutoLogin
push str.BaseSetting
call esi
mov ecx, str.TRUE
lea eax, [ebp - 0x21c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405376
test dx, dx
je 0x405372
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405376
add eax, 4
add ecx, 4
test dx, dx
jne 0x405350
xor eax, eax
jmp 0x40537b
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [ebp - 0x498]
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
push 0x104
test eax, eax
lea eax, [ebp - 0x21c]
push eax
sete cl
push 0x43c030
push str.BootStart
push str.BaseSetting
mov dword [edi + 4], ecx
call esi
mov ecx, str.TRUE
lea eax, [ebp - 0x21c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053e6
test dx, dx
je 0x4053e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053c0
xor eax, eax
jmp 0x4053eb
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
push 0x104
test eax, eax
lea eax, [ebp - 0x21c]
push eax
sete cl
push str.TRUE
push str.ServiceOn
push str.ServiceSetting
mov dword [edi + 8], ecx
call esi
mov ecx, 0x43c030
lea eax, [ebp - 0x21c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40544a
test dx, dx
je 0x405446
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40544a
add eax, 4
add ecx, 4
test dx, dx
jne 0x405424
xor eax, eax
jmp 0x40544f
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
push 0x104
test eax, eax
lea eax, [ebp - 0x21c]
push eax
setne cl
push str.TRUE
push str.ReceiveMsg
push str.ServiceSetting
mov dword [edi + 0xc], ecx
call esi
mov ecx, 0x43c030
lea eax, [ebp - 0x21c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4054ae
test dx, dx
je 0x4054aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4054ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x405488
xor eax, eax
jmp 0x4054b3
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
push 0x104
test eax, eax
lea eax, [ebp - 0x21c]
push eax
setne cl
push str.TRUE
push str.AutoRestore
push str.ServiceSetting
mov dword [edi + 0x10], ecx
call esi
mov ecx, 0x43c030
lea eax, [ebp - 0x21c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405516
test dx, dx
je 0x405512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4054f0
xor eax, eax
jmp 0x40551b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x424]
push edx
push 0x104
test eax, eax
lea eax, [ebp - 0x21c]
push eax
setne cl
push str.TRUE
push str.AutoReConnect
push str.BaseSetting
mov dword [edi + 0x14], ecx
call esi
mov ecx, 0x43c030
lea eax, [ebp - 0x21c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40557a
test dx, dx
je 0x405576
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40557a
add eax, 4
add ecx, 4
test dx, dx
jne 0x405554
xor eax, eax
jmp 0x40557f
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [edi + 0x18], ecx
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.0041b4d6
mov esp, ebp
pop ebp
ret 4