Function at 0x5110a0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x818], ecx
mov ecx, dword [ebp - 0x818]
call fcn.0050d7b0
mov ecx, dword [ebp - 0x818]
add ecx, 0x48
call fcn.0050d7b0
mov ecx, dword [ebp - 0x818]
add ecx, 0x90
call fcn.0050e800
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x818]
add ecx, 0xa8
call fcn.0050e800
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x818]
mov dword [eax + 0xc0], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xc4], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0xc8], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0xcc], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0xd4], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0xd8], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xdc], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0xe0], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0xe4], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xe8], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0xec], 0
call fcn.00491ec5
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0xf4], eax
mov ecx, dword [ebp - 0x818]
add ecx, 0xf8
call fcn.0050ea20
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x10c], 0xa800
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x110], 0
mov ecx, dword [ebp - 0x818]
mov byte [ecx + 0x114], 1
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x118], 6
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x11c], 0
xor ecx, ecx
mov edx, dword [ebp - 0x818]
mov word [edx + 0x120], cx
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x124], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x134], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x13c], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x140], 0x64
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x144], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x148], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x14c], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x150], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x154], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x158], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x160], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x164], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x168], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x16c], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x170], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x174], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x178], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x17c], 0
mov eax, dword [ebp - 0x818]
mov dword [eax + 0x184], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x188], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp - 0x818]
mov byte [eax + 0x190], 0
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x194], 0
mov edx, dword [ebp - 0x818]
mov byte [edx + 0x198], 0
push 8
push 0
mov eax, dword [ebp - 0x818]
add eax, 0x12a
push eax
call fcn.00491e40
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x814], cx
push 0x7fe
push 0
lea edx, [ebp - 0x812]
push edx
call fcn.00491e40
add esp, 0xc
push 0x400
lea eax, [ebp - 0x814]
push eax
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x814]
push ecx
push 0x1a2b
push str.LISTEN_PORT
push 0x54486c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x818]
mov word [edx + 0x120], ax
lea eax, [ebp - 0x814]
push eax
push 0
push str.FUNPALYERCHANNELID
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x818]
mov dword [ecx + 0x134], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret