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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436632
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
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]
push 0
mov esi, ecx
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
mov dword [ebp - 0x6bc], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x4073fa
mov eax, dword [esi]
jmp 0x4073fc
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 0x407430
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x40743a
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 ebx, eax
push 0
push ebx
call fcn.00426cd0
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
push 0x1000
push ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [ebp - 0x6c8], eax
mov edi, ebx
mov byte [ebp - 0x6b5], 0
mov dword [ebp - 0x6c0], ecx
mov dword [ebp - 0x6c4], ecx
cmp eax, ecx
ja 0x407645
mov esi, dword [ebp - 0x6bc]
push ebx
call fcn.0041c3d5
add esp, 4
cmp byte [ebp - 0x6b5], 0
jne 0x407625
mov ecx, dword [ebp - 0x6c0]
push ecx
push str.ProxySetting
push str._s__d
lea edx, [ebp - 0x628]
call fcn.00404770
lea edx, [ebp - 0x6b4]
push esi
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], 5
cmp dword [eax + 0x14], 0x10
jb 0x4074fd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x67c]
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 edi, 8
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x407519
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.BrowserInfo
lea edx, [ebp - 0x628]
push edx
call ebx
cmp dword [ebp - 0x668], edi
jb 0x40754c
mov eax, dword [ebp - 0x67c]
push eax
call fcn.0041bfc5
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6a0], 0x10
mov dword [ebp - 0x668], edi
mov dword [ebp - 0x66c], 0
mov word [ebp - 0x67c], cx
jb 0x407589
mov edx, dword [ebp - 0x6b4]
push edx
call fcn.0041bfc5
add esp, 4
add esi, 0x1c
lea eax, [ebp - 0x644]
push esi
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, 8
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4075ab
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x660]
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__
mov esi, 8
add esp, 8
cmp dword [eax + 0x14], esi
jb 0x4075c7
mov eax, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
push str.ProxyInfo
lea eax, [ebp - 0x628]
push eax
call ebx
cmp dword [ebp - 0x64c], esi
jb 0x4075f4
mov ecx, dword [ebp - 0x660]
push ecx
call fcn.0041bfc5
add esp, 4
xor edx, edx
cmp dword [ebp - 0x630], 0x10
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], dx
jb 0x407625
mov eax, dword [ebp - 0x644]
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 4
xor ecx, ecx
mov dword [ebp - 0x688], ecx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x684], 7
mov word [ebp - 0x698], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407663
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x698]
call fcn.00409320
push 0xc
push str.ProxySetting
lea edx, [ebp - 0x698]
xor esi, esi
push edx
mov dword [ebp - 4], esi
call fcn.00409170
cmp eax, 0xffffffff
je 0x4077a4
inc dword [ebp - 0x6c0]
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push esi
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.BrowserInfo
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, si
jne 0x4076f2
sub eax, edx
sar eax, 1
je 0x4077a4
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x660]
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 - 0x644]
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 byte [ebp - 4], 3
cmp dword [ebp - 0x64c], 0x10
jb 0x40774a
mov ecx, dword [ebp - 0x660]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 0x650], esi
mov esi, dword [ebp - 0x6bc]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x64c], 0xf
mov byte [ebp - 0x660], 0
jb 0x407774
mov ecx, dword [esi]
jmp 0x407776
mov ecx, esi
push eax
mov eax, dword [ebp - 0x634]
lea edx, [ebp - 0x644]
call fcn.004090b0
test eax, eax
je 0x407800
cmp dword [ebp - 0x630], 0x10
jb 0x4077a4
mov edx, dword [ebp - 0x644]
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 0x4077b0
sub eax, edx
sar eax, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x684], 8
lea edi, [edi + eax*2 + 2]
jb 0x4077e2
mov eax, dword [ebp - 0x698]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp - 0x6c4]
inc eax
mov dword [ebp - 0x6c4], eax
cmp eax, dword [ebp - 0x6c8]
jb 0x407643
jmp 0x4074a6
lea ecx, [esi + 0x1c]
push ecx
lea edx, [ebp - 0x6b4]
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], 4
cmp dword [eax + 0x14], 0x10
jb 0x40781f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x67c]
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], 8
jb 0x407837
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.ProxyInfo
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x668], 8
jb 0x407863
mov edx, dword [ebp - 0x67c]
push edx
call fcn.0041bfc5
add esp, 4
xor edi, edi
xor eax, eax
cmp dword [ebp - 0x6a0], 0x10
mov dword [ebp - 0x668], 7
mov dword [ebp - 0x66c], edi
mov word [ebp - 0x67c], ax
jb 0x407896
mov ecx, dword [ebp - 0x6b4]
push ecx
call fcn.0041bfc5
add esp, 4
cmp dword [ebp - 0x630], 0x10
mov byte [ebp - 0x6b5], 1
jb 0x4078b5
mov edx, dword [ebp - 0x644]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x684], 8
mov dword [ebp - 0x630], 0xf
mov dword [ebp - 0x634], edi
mov byte [ebp - 0x644], 0
jb 0x4074ac
mov eax, dword [ebp - 0x698]
push eax
call fcn.0041bfc5
add esp, 4
jmp 0x4074ac