Function at 0x49fae0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d571
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0x45c], 0
lea ecx, [ebp - 0x10]
call fcn.00403840
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00403840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43a]
call fcn.00407270
mov byte [ebp - 4], 3
cmp dword [0x58fb50], 0
je 0x49fb63
push 0x5496a0
push 0x58f750
call fcn.004045b0
add esp, 8
lea ecx, [ebp - 0x43a]
call fcn.00407c00
test eax, eax
jne 0x49fbe2
push str.S_MRM
lea ecx, [ebp - 0x10]
call fcn.00401ed0
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
push 0x58f750
call fcn.004045b0
add esp, 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov ecx, dword [ebp - 0x45c]
or ecx, 1
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43a]
call fcn.00407280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x49ffff
mov byte [ebp - 0x21e], 0
mov byte [ebp - 0x439], 0
push 0x540e68
lea edx, [ebp - 0x438]
push edx
call fcn.0041acc0
add esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0x439]
push eax
lea ecx, [ebp - 0x21e]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0043e290
push eax
call fcn.004a6460
add esp, 0xc
mov byte [ebp - 0x21d], al
movzx edx, byte [ebp - 0x21d]
test edx, edx
jne 0x49fccc
push str.360EntClient.ini
lea ecx, [ebp - 0x228]
call fcn.00401ed0
mov eax, dword [ebp - 0x228]
push eax
push 0x54bc1c
push 0x58f750
call fcn.004045b0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov edx, dword [ebp - 0x45c]
or edx, 1
mov dword [ebp - 0x45c], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43a]
call fcn.00407280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x49ffff
movzx eax, byte [ebp - 0x439]
test eax, eax
je 0x49fdc6
movzx ecx, byte [ebp - 0x21e]
test ecx, ecx
je 0x49fd74
push 0x54bbec
lea ecx, [ebp - 0x228]
call fcn.00401ed0
mov edx, dword [ebp - 0x228]
push edx
push 0x54bc1c
push 0x58f750
call fcn.004045b0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov ecx, dword [ebp - 0x45c]
or ecx, 1
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43a]
call fcn.00407280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x49ffff
push 0x54bbc4
push 0x58f750
call fcn.004045b0
add esp, 8
push str.360EntClient_update.ini
lea edx, [ebp - 0x440]
push edx
call fcn.0041acc0
add esp, 8
lea ecx, [ebp - 0x440]
call fcn.0043e290
push eax
push 0x540b3c
push str.Connected
push str.360EntClient
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x440]
call fcn.00401eb0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004b0ac0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x434], dx
push 0x206
push 0
lea eax, [ebp - 0x432]
push eax
call fcn.004b0ac0
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.0043e290
push eax
push 0x207
lea ecx, [ebp - 0x434]
push ecx
push 0x540868
push str.port
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x438]
call fcn.0043e290
push eax
push 0x103
lea edx, [ebp - 0x21c]
push edx
push 0x540868
push 0x540e40
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x224]
call fcn.00403840
mov byte [ebp - 4], 5
lea eax, [ebp - 0x224]
push eax
call fcn.00401800
add esp, 4
test eax, eax
je 0x49ff99
push str.setting.ini
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.00403700
add esp, 0xc
lea ecx, [ebp - 0x444]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ff8e
lea ecx, [ebp - 0x444]
call fcn.0043e290
push eax
push 0x540b3c
push 0x5452c8
push 0x5409f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x444]
call fcn.0043e290
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x54bb8c
push 0x5409f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x444]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0x54bb84
push 0x5409f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
push str.Q360SDClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x49ff8e
mov dword [ebp - 0x458], 0
xor edx, edx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x458], 0x363363
lea eax, [ebp - 0x44c]
push eax
push 0x2710
push 1
lea ecx, [ebp - 0x458]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x444]
call fcn.00401eb0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov ecx, dword [ebp - 0x45c]
or ecx, 1
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call fcn.00401eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43a]
call fcn.00407280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 4