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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435c97
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
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]
xor ebx, ebx
push ebx
mov esi, ecx
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov dword [ebp - 0x4c0], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x40855a
mov eax, dword [esi]
jmp 0x40855c
mov eax, esi
push eax
lea edx, [ebp - 0x218]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408590
push ebx
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x40859a
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x218]
push edx
push str._s_s
call fcn.00404770
push 0x2000
call fcn.0041a77e
push 0x1000
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x4b4], edi
call fcn.00426cd0
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
push 0x1000
push edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 0x4ad], bl
mov dword [ebp - 0x4b8], ebx
cmp eax, ebx
jbe 0x4088d1
lea ecx, [ecx]
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408620
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x458]
call fcn.00409320
push 0xd
push str.WEExintStatus
mov edx, esi
push edx
mov dword [ebp - 4], ebx
call fcn.00409170
cmp eax, 0xffffffff
je 0x40876c
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.00426cd0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x43c02c
push str.ExitBrowser
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4086a3
sub eax, edx
sar eax, 1
je 0x40876c
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x490]
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 - 0x43c]
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 - 0x47c], esi
jb 0x4086ff
mov ecx, dword [ebp - 0x490]
push ecx
call fcn.0041bfc5
add esp, 4
mov ecx, dword [ebp - 0x4c0]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x47c], 0xf
mov dword [ebp - 0x480], ebx
mov byte [ebp - 0x490], bl
cmp dword [ecx + 0x14], esi
jb 0x408725
mov ecx, dword [ecx]
push eax
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x43c]
call fcn.004090b0
test eax, eax
je 0x4087c1
cmp dword [ebp - 0x428], esi
jb 0x408756
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408771
sub eax, edx
sar eax, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x444], 8
lea edi, [edi + eax*2 + 2]
jb 0x4087a3
mov eax, dword [ebp - 0x458]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp - 0x4b8]
inc eax
mov dword [ebp - 0x4b8], eax
cmp eax, dword [ebp - 0x4bc]
jb 0x408600
jmp 0x4088cb
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0x43c02c
push str.ExitConnected
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x4ac]
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 - 0x474]
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 byte [ebp - 4], 6
cmp dword [ebp - 0x498], esi
jb 0x408827
mov eax, dword [ebp - 0x4ac]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp - 0x464]
mov edi, 0xf
push 9
mov ecx, str.exit_true
lea edx, [ebp - 0x474]
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x49c], ebx
mov byte [ebp - 0x4ac], bl
call fcn.004090b0
test eax, eax
jne 0x408861
mov byte [ebp - 0x4ad], 1
cmp dword [ebp - 0x460], esi
jb 0x408878
mov ecx, dword [ebp - 0x474]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x464], ebx
mov byte [ebp - 0x474], bl
cmp dword [ebp - 0x428], esi
jb 0x4088a1
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
jb 0x4088cb
mov eax, dword [ebp - 0x458]
push eax
call fcn.0041bfc5
add esp, 4
mov edi, dword [ebp - 0x4b4]
push edi
call fcn.0041c3d5
mov al, byte [ebp - 0x4ad]
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 4