Function at 0x409680
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586391
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
push 0x5cb4dc
push 0x100
push 0x100
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00402f30
push eax
push 0
push 0x5cb500
push 0x5cb508
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x409700
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00402ae0
jmp 0x4097d8
lea eax, [ebp - 0x228]
push eax
call fcn.00413fd0
mov ecx, eax
call fcn.00405170
mov dword [ebp - 0x224], eax
push 0x5cb51c
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0040c150
add esp, 8
mov byte [ebp - 0x21d], al
lea ecx, [ebp - 0x228]
call fcn.00403170
movzx edx, byte [ebp - 0x21d]
test edx, edx
je 0x409761
push str.http:__au.9you.com_web_v6_unlauncher360_index.html
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00402aa0
jmp 0x4097d8
lea eax, [ebp - 0x230]
push eax
call fcn.00413fd0
mov ecx, eax
call fcn.00405170
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
push 0x5cb534
call fcn.0040a820
add esp, 8
mov byte [ebp - 0x21e], al
lea ecx, [ebp - 0x230]
call fcn.00403170
movzx edx, byte [ebp - 0x21e]
test edx, edx
je 0x4097c2
push str.http:__au.9you.com_web_v6_unlaunchersw_
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00402aa0
jmp 0x4097d8
push 0x5cb608
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00402aa0
push 4
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.0040a900
mov dword [ebp - 0x234], eax
push str.http
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0040a7f0
add esp, 8
mov byte [ebp - 0x21f], al
lea ecx, [ebp - 0x238]
call fcn.00403170
movzx edx, byte [ebp - 0x21f]
test edx, edx
je 0x409931
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0055ed40
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00404d70
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0
push 0x5cb64c
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x258]
push edx
call fcn.00403bd0
add esp, 0xc
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
push ecx
mov edx, dword [ebp - 0x248]
push edx
lea eax, [ebp - 0x254]
push eax
call fcn.0040a850
add esp, 0xc
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x250]
push edx
mov ecx, dword [ebp - 0x21c]
add ecx, 0xe4
call fcn.00403d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.00403170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.00403170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00403170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret