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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43653d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c8
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x1a
lea ecx, [ebp - 0x31c]
push ecx
push esi
mov dword [ebp - 0x7c4], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.aywe
lea edx, [ebp - 0x31c]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408985
push esi
lea ecx, [ebp - 0x31c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.aywe_map.ini
lea edx, [ebp - 0x31c]
push edx
push str._s_s
call fcn.00404770
push 0x2000
call fcn.0041a77e
push 0x1000
mov edi, eax
push esi
push edi
mov dword [ebp - 0x7cc], edi
call fcn.00426cd0
add esp, 0x1c
lea eax, [ebp - 0x31c]
push eax
push 0x1000
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x7d0], eax
mov byte [ebp - 0x7b9], 0
mov dword [ebp - 0x7c0], esi
mov dword [ebp - 0x7c8], esi
cmp eax, esi
jbe 0x408d00
jmp 0x408a00
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x788], 7
mov dword [ebp - 0x78c], 0
mov word [ebp - 0x79c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a22
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x79c]
call fcn.00409320
push 9
push str.WEInfoMap
mov edx, esi
push edx
mov dword [ebp - 4], 0
call fcn.00409170
cmp eax, 0xffffffff
je 0x408b64
inc dword [ebp - 0x7c0]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x522]
push ecx
mov word [ebp - 0x524], ax
call fcn.00426cd0
add esp, 0xc
lea edx, [ebp - 0x31c]
push edx
push 0x104
lea eax, [ebp - 0x524]
push eax
push 0x43c02c
push str.InfoBrowser
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x524]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ab0
sub eax, edx
sar eax, 1
je 0x408b64
lea ecx, [ebp - 0x524]
push ecx
lea edx, [ebp - 0x780]
push edx
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 eax, [ebp - 0x748]
push eax
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::DecryptIni_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0x10
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x76c], esi
jb 0x408b0c
mov ecx, dword [ebp - 0x780]
push ecx
call fcn.0041bfc5
add esp, 4
mov ecx, dword [ebp - 0x7c4]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x76c], 0xf
mov dword [ebp - 0x770], 0
mov byte [ebp - 0x780], 0
cmp dword [ecx + 0x14], esi
jb 0x408b37
mov ecx, dword [ecx]
push eax
mov eax, dword [ebp - 0x738]
lea edx, [ebp - 0x748]
call fcn.004090b0
test eax, eax
je 0x408bc0
cmp dword [ebp - 0x734], esi
jb 0x408b64
mov edx, dword [ebp - 0x748]
push edx
call fcn.0041bfc5
add esp, 4
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b70
sub eax, edx
sar eax, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x788], 8
lea edi, [edi + eax*2 + 2]
jb 0x408ba2
mov eax, dword [ebp - 0x79c]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp - 0x7c8]
inc eax
mov dword [ebp - 0x7c8], eax
cmp eax, dword [ebp - 0x7d0]
jb 0x408a00
jmp 0x408d00
lea ecx, [ebp - 0x31c]
push ecx
push 0x104
lea edx, [ebp - 0x524]
push edx
push 0x43c02c
push str.InfoName
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x7b8]
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 - 0x764]
push edx
mov byte [ebp - 4], 4
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 esi, eax
cmp ebx, esi
je 0x408c62
cmp dword [ebx + 0x14], 0x10
jb 0x408c22
mov eax, dword [ebx]
push eax
call fcn.0041bfc5
add esp, 4
xor edi, edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
mov byte [ebx], 0
cmp dword [esi + 0x14], 0x10
jae 0x408c48
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push ebx
call fcn.0041b8d0
add esp, 0xc
jmp 0x408c4e
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x14], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jmp 0x408c64
xor edi, edi
cmp dword [ebp - 0x750], 0x10
jb 0x408c7c
mov eax, dword [ebp - 0x764]
push eax
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x7a4], 0x10
mov dword [ebp - 0x750], 0xf
mov dword [ebp - 0x754], edi
mov byte [ebp - 0x764], 0
jb 0x408cab
mov ecx, dword [ebp - 0x7b8]
push ecx
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x734], 0x10
mov byte [ebp - 0x7b9], 1
jb 0x408cca
mov edx, dword [ebp - 0x748]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x788], 8
mov dword [ebp - 0x734], 0xf
mov dword [ebp - 0x738], edi
mov byte [ebp - 0x748], 0
jb 0x408d00
mov eax, dword [ebp - 0x79c]
push eax
call fcn.0041bfc5
add esp, 4
mov ecx, dword [ebp - 0x7cc]
push ecx
call fcn.0041c3d5
add esp, 4
cmp byte [ebp - 0x7b9], 0
jne 0x408f92
mov esi, dword [ebp - 0x7c0]
push esi
push str.WEInfoMap
push str._s__d
lea edx, [ebp - 0x72c]
call fcn.00404770
mov edx, dword [ebp - 0x7c4]
push edx
lea eax, [ebp - 0x7b8]
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 edi, 0x10
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], edi
jb 0x408d61
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x764]
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], 8
jb 0x408d79
mov eax, dword [eax]
lea edx, [ebp - 0x31c]
push edx
push eax
push str.InfoBrowser
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x750], 8
jb 0x408dab
mov ecx, dword [ebp - 0x764]
push ecx
call fcn.0041bfc5
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x750], 7
mov dword [ebp - 0x754], 0
mov word [ebp - 0x764], dx
cmp dword [ebp - 0x7a4], edi
jb 0x408de6
mov eax, dword [ebp - 0x7b8]
push eax
call fcn.0041bfc5
add esp, 4
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov byte [ebp - 0x114], 0
call fcn.00426cd0
push esi
lea edx, [ebp - 0x114]
push str.aywe_setting__d.ini
push edx
call fcn.0041b6ac
lea eax, [ebp - 0x114]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e20
sub eax, edx
mov esi, eax
mov eax, dword [ebx + 0x14]
cmp eax, edi
jb 0x408e36
mov ecx, dword [ebx]
jmp 0x408e38
mov ecx, ebx
lea edx, [ebp - 0x114]
cmp edx, ecx
jb 0x408e8a
cmp eax, edi
jb 0x408e4a
mov ecx, dword [ebx]
jmp 0x408e4c
mov ecx, ebx
mov edx, dword [ebx + 0x10]
add edx, ecx
lea ecx, [ebp - 0x114]
cmp edx, ecx
jbe 0x408e8a
cmp eax, edi
jb 0x408e74
mov eax, dword [ebx]
mov edx, ecx
push esi
sub edx, eax
push edx
push ebx
mov ecx, ebx
call fcn.00402819
jmp 0x408ef6
mov eax, ebx
push esi
lea edx, [ebp - 0x114]
sub edx, eax
push edx
push ebx
mov ecx, ebx
call fcn.00402819
jmp 0x408ef6
cmp esi, 0xfffffffe
jbe 0x408e99
push str.string_too_long
call fcn.0041a6c3
cmp eax, esi
jae 0x408eab
mov eax, dword [ebx + 0x10]
push eax
push esi
mov ecx, ebx
call fcn.00402ce9
jmp 0x408ebf
test esi, esi
jne 0x408ec1
mov dword [ebx + 0x10], esi
cmp eax, edi
jb 0x408eba
mov eax, dword [ebx]
jmp 0x408ebc
mov eax, ebx
mov byte [eax], 0
test esi, esi
setne al
test al, al
je 0x408ef6
cmp dword [ebx + 0x14], edi
jb 0x408ed1
mov eax, dword [ebx]
jmp 0x408ed3
mov eax, ebx
push esi
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.0041dc40
add esp, 0xc
mov dword [ebx + 0x10], esi
cmp dword [ebx + 0x14], edi
jb 0x408ef0
mov eax, dword [ebx]
jmp 0x408ef2
mov eax, ebx
mov byte [esi + eax], 0
lea edx, [ebp - 0x748]
push ebx
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 ebx, 7
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jb 0x408f15
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x780]
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__
mov esi, 8
add esp, 8
cmp dword [eax + 0x14], esi
jb 0x408f31
mov eax, dword [eax]
lea ecx, [ebp - 0x31c]
push ecx
push eax
push str.InfoName
lea edx, [ebp - 0x72c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x76c], esi
jb 0x408f62
mov eax, dword [ebp - 0x780]
push eax
call fcn.0041bfc5
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x76c], ebx
mov dword [ebp - 0x770], 0
mov word [ebp - 0x780], cx
cmp dword [ebp - 0x734], edi
jb 0x408f92
mov edx, dword [ebp - 0x748]
push edx
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