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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435d46
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x45a6d0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x45a6d0]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov esi, ecx
push 0x1a
lea ecx, [esp + 0xbc]
push ecx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x40796b
mov eax, dword [esi]
jmp 0x40796d
mov eax, esi
push eax
lea edx, [esp + 0xb8]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4079a4
push ebx
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x4079ae
mov eax, dword [eax]
push eax
lea edx, [esp + 0xb8]
push edx
push str._s_s
call fcn.00404770
add esp, 0xc
push 0x2000
call fcn.0041a77e
add esp, 4
push 0x1000
mov edi, eax
push ebx
push edi
mov dword [esp + 0x30], edi
call fcn.00426cd0
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
push 0x1000
push edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x14], edi
cmp eax, ebx
jbe 0x407e9c
mov dword [esp + 0x1c], eax
jmp 0x407a14
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407a32
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x80]
call fcn.00409320
push 0xc
push str.ProxySetting
mov edx, esi
push edx
mov dword [esp + 0x4e4], ebx
call fcn.00409170
cmp eax, 0xffffffff
je 0x407e50
mov eax, 0xf
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
push 0x206
lea ecx, [esp + 0x2c2]
xor eax, eax
push ebx
mov byte [esp + 0x4e0], 1
push ecx
mov word [esp + 0x2c8], ax
call fcn.00426cd0
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
push 0x104
lea eax, [esp + 0x2c4]
push eax
push 0x43c02c
push str.BrowserInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407ae4
sub eax, edx
sar eax, 1
je 0x407bcf
lea ecx, [esp + 0x2bc]
push ecx
lea edx, [esp + 0x9c]
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, [esp + 0x6c]
push eax
mov byte [esp + 0x4e8], 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 esi, eax
lea ecx, [esp + 0x28]
cmp ecx, esi
je 0x407b89
cmp dword [esp + 0x3c], 0x10
jb 0x407b42
mov edx, dword [esp + 0x28]
push edx
call fcn.0041bfc5
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esi + 0x14], 0x10
jae 0x407b6d
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0041b8d0
add esp, 0xc
jmp 0x407b75
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [esp + 0x74], 0x10
jb 0x407b9d
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041bfc5
add esp, 4
mov byte [esp + 0x4d8], 1
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x407bcf
mov edx, dword [esp + 0x98]
push edx
call fcn.0041bfc5
add esp, 4
lea eax, [esp + 0xb4]
push eax
push 0x104
lea ecx, [esp + 0x2c4]
push ecx
push 0x43c02c
push str.ProxyInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2bc]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407c00
sub eax, edx
sar eax, 1
je 0x407cec
lea edx, [esp + 0x2bc]
push edx
lea eax, [esp + 0x9c]
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, [esp + 0x6c]
push ecx
mov byte [esp + 0x4e8], 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
lea edx, [esp + 0x44]
mov edi, 0x10
cmp edx, esi
je 0x407ca8
cmp dword [esp + 0x58], edi
jb 0x407c62
mov eax, dword [esp + 0x44]
push eax
call fcn.0041bfc5
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esi + 0x14], edi
jae 0x407c8c
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.0041b8d0
add esp, 0xc
jmp 0x407c94
mov edx, dword [esi]
mov dword [esp + 0x44], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [esp + 0x74], edi
jb 0x407cbb
mov edx, dword [esp + 0x60]
push edx
call fcn.0041bfc5
add esp, 4
mov byte [esp + 0x4d8], 1
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0xac], edi
jb 0x407cec
mov eax, dword [esp + 0x98]
push eax
call fcn.0041bfc5
add esp, 4
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 4]
lea edx, [esp + 0x28]
mov esi, ecx
cmp edx, edi
jae 0x407da2
mov eax, dword [esi]
mov ecx, edx
cmp eax, ecx
ja 0x407da2
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x10]
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ecx + 8]
jne 0x407d34
call fcn.004092a0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea edx, [esi*8]
sub edx, esi
lea edi, [eax + edx*8]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x4d8], 6
cmp esi, ebx
je 0x407d9b
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edi
mov ecx, esi
mov byte [esi], bl
call fcn.00402819
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [esp + 0x4dc], 7
push ebx
add edi, 0x1c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00402819
mov eax, dword [esp + 0x10]
mov edi, 0xf
jmp 0x407e05
cmp edi, dword [esi + 8]
jne 0x407dae
mov ecx, esi
call fcn.004092a0
mov esi, dword [esi + 4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x4d8], 8
mov edi, 0xf
cmp esi, ebx
je 0x407e01
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], bl
call fcn.00402819
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [esp + 0x4dc], 9
push ebx
lea edx, [esp + 0x4c]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00402819
mov eax, dword [esp + 0x10]
add dword [eax + 4], 0x38
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x407e21
mov eax, dword [esp + 0x44]
push eax
call fcn.0041bfc5
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x3c], esi
jb 0x407e40
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407e55
sub eax, edx
sar eax, 1
lea edx, [edi + eax*2 + 2]
mov dword [esp + 0x4d8], 0xffffffff
cmp dword [esp + 0x90], 8
mov dword [esp + 0x14], edx
jb 0x407e8e
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041bfc5
add esp, 4
dec dword [esp + 0x1c]
jne 0x407a10
mov edi, dword [esp + 0x24]
push edi
call fcn.0041c3d5
add esp, 4
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 4