Function at 0x4075e0
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407911
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x26415c4], eax
je 0x407911
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x125]
push ecx
lea edx, [esp + 0x28]
push edx
push str._PCSX2___s_status_s
push 0x2641080
call fcn.00563254
mov esi, dword [esp + 0x1c4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push 0x2641080
push 0
push 0x180
push 0x486
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebx
mov ebp, dword [esp + 0x1b8]
push ebp
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x26415c4]
mov word [esp + 0x12], ax
push 0x10
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
push ebp
jne 0x4076dd
push str.Could_not_bind_to_port__d_n_Is_there_another_server_running_on_that_port__
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0
push 0
push 0x2641080
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x26415c4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
push str._PCSX2__Port__d_is_opened
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0
push 0x180
push 0x486
push esi
call edi
push eax
call ebx
mov eax, dword [0x26415c4]
push Ordinal_1
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x407758
push str.Listening_for_a_connection_failed_n_dunno__
push 0x2641080
call fcn.00563254
add esp, 8
push 0
push 0
push 0x2641080
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x26415c4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
push str._PCSX2__Listening_for_a_connection_to_establish...
push 0x2641080
call fcn.00563254
add esp, 8
push 0x2641080
push 0
push 0x180
push 0x486
push esi
call edi
push eax
call ebx
mov eax, dword [0x6029c8]
mov edx, dword [0x260a298]
push eax
push str._08X
push 0x2641080
mov dword [0x602978], eax
mov dword [0x260a150], edx
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x48a
push esi
call edi
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call ebp
mov eax, dword [0x260a298]
push eax
push str._08X
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x48b
push esi
call edi
push eax
call ebp
mov ecx, dword [0x602ae0]
push ecx
push 0x582d70
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x48c
push esi
call edi
push eax
call ebp
mov edx, dword [0x260a2a0]
push edx
push 0x582d70
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x48d
push esi
call edi
push eax
call ebp
xor eax, eax
cmp dword [0x601e70], eax
push 0
sete al
push eax
push 0xf1
push 0x498
push esi
call edi
push eax
call ebx
xor ecx, ecx
cmp dword [0x601e70], 1
push 0
sete cl
push ecx
push 0xf1
push 0x499
push esi
call edi
push eax
call ebx
push 0
push 8
push 0xc5
push 0x49a
push esi
call edi
push eax
call ebx
push 0
push 0xa
push 0xc5
push 0x49b
push esi
call edi
push eax
call ebx
mov edx, dword [0x601e74]
push edx
push str._08X
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x49a
push esi
call edi
push eax
call ebp
mov eax, dword [0x601e78]
push eax
push 0x582d70
push 0x2641080
call fcn.00563254
add esp, 0xc
push 0x2641080
push 0x49b
push esi
call edi
push eax
call ebp
push 0
push 0x499
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1a4]
push 0
push 0
push str.Could_not_create_socket_n_Is_TCP_IP_installed__WinSock_1.1_or_above__
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x1a0
ret