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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1420
call fcn.00565240
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x1418], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1416]
push ecx
call fcn.00562540
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x40e
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00562540
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x1418]
push ecx
call fcn.00562540
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x7ff
lea eax, [ebp - 0x1418]
push eax
push 0x5997c4
push str.port_w_list_file
push 0x5997ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x485390
push 0x207
push 0
lea ecx, [ebp - 0x418]
push ecx
call fcn.00562540
add esp, 0xc
push 0x207
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x2f
lea edx, [ebp - 0x1418]
push edx
call fcn.004847d0
add esp, 8
test eax, eax
jne 0x485317
push 0x5c
lea eax, [ebp - 0x1418]
push eax
call fcn.004847d0
add esp, 8
test eax, eax
je 0x48536b
lea ecx, [ebp - 0x1418]
push ecx
mov ecx, 0x63b360
call fcn.0040e480
lea edx, [ebp - 0x1418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485369
push 0x5997fc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x418]
push edx
mov ecx, 0x63b360
call fcn.0040e480
jmp 0x485390
lea eax, [ebp - 0x1418]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x418]
push edx
mov ecx, 0x63b360
call fcn.0040e480
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x141c], esp
push 0x63b360
call fcn.00407f00
mov dword [ebp - 0x1420], eax
call fcn.00484ef0
add esp, 0x1c
push 0x800
push 0
lea eax, [ebp - 0x1418]
push eax
call fcn.00562540
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x7ff
lea edx, [ebp - 0x1418]
push edx
push 0x59981c
push str.cnnt_w_list_file
push str.net_mon
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4854d7
push 0x207
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.00562540
add esp, 0xc
push 0x207
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x2f
lea ecx, [ebp - 0x1418]
push ecx
call fcn.004847d0
add esp, 8
test eax, eax
jne 0x48545e
push 0x5c
lea edx, [ebp - 0x1418]
push edx
call fcn.004847d0
add esp, 8
test eax, eax
je 0x4854b2
lea eax, [ebp - 0x1418]
push eax
mov ecx, 0x63b30c
call fcn.0040e480
lea ecx, [ebp - 0x1418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x1418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4854b0
push 0x599854
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
mov ecx, 0x63b30c
call fcn.0040e480
jmp 0x4854d7
lea edx, [ebp - 0x1418]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
mov ecx, 0x63b30c
call fcn.0040e480
call fcn.00484db0
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret