Function at 0x4723f0
Capabilities:
Check if file exists
Get common file path
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push str.LTaddPort_P2P98___start_n
push 0
call fcn.004718a0
add esp, 8
mov al, byte [0x4cc00e]
mov byte [ebp - 0x138], al
xor ecx, ecx
mov dword [ebp - 0x137], ecx
mov dword [ebp - 0x133], ecx
mov dword [ebp - 0x12f], ecx
mov word [ebp - 0x12b], cx
mov byte [ebp - 0x129], cl
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x472460
cmp dword [ebp - 0x128], 0xffffffff
jne 0x4724cf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x4724cd
push 4
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.00489120
add esp, 0xc
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00489ae0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x138]
push edx
push str.LTaddPort_P2P98___host_addr_is___s____s__n
push 0
call fcn.004718a0
add esp, 0x10
jmp 0x4724e2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.00489ae0
add esp, 8
push 0x104
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4cc650
lea eax, [ebp - 0x120]
push eax
call fcn.00489af0
add esp, 8
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x47252f
push str.LTaddPort_P2P98___setting_ini_file_not_found_n
push 0
call fcn.004718a0
add esp, 8
xor eax, eax
jmp 0x47268f
push 0x4cc690
lea edx, [ebp - 0x120]
push edx
call fcn.0048dd3f
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x472562
push str.LTaddPort_P2P98___cant_open_setting_ini_file_n
push 0
call fcn.004718a0
add esp, 8
xor eax, eax
jmp 0x47268f
mov dword [ebp - 0xc], str.KONICA_MINOLTA_Peer_to_Peer_Port
lea eax, [ebp - 0x124]
push eax
call fcn.004609e0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x47258d
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x472613
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x138]
push eax
push str._s:KMP_d
push 0x53f850
call fcn.00489bd8
add esp, 0x10
mov dword [ebp - 0x13c], 0
jmp 0x4725ce
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 4]
jge 0x472601
push 0x53f850
mov eax, dword [ebp - 0x13c]
shl eax, 4
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + eax]
push edx
call fcn.004405d0
add esp, 8
test eax, eax
jne 0x4725ff
jmp 0x472601
jmp 0x4725bf
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 4]
jl 0x47260e
jmp 0x472613
jmp 0x472584
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.00460db0
add esp, 4
push 2
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048e9b7
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x53f850
push 0x4cc6f4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0048e7e1
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048da78
add esp, 4
push 0x53f851
push str.LTaddPort_P2P98___successfully_added_port_as__s_n
push 0
call fcn.004718a0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call fcn.004609e0
add esp, 4
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.00460db0
add esp, 4
mov eax, 0x53f850
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret