Function at 0x426cfe
Capabilities:
Connect socket
Get hostname
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push ebx
push esi
push edi
mov dword [ebp - 0x154], 1
mov al, byte [0x44db78]
mov byte [ebp - 0x1dc], al
lea edi, [ebp - 0x1db]
xor eax, eax
mov ecx, 0x18
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp + 0x10], 0
jne 0x426d4a
mov eax, 0xffffffff
jmp 0x42759f
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
call fcn.0042b2b5
cmp eax, 1
jne 0x426d68
mov dword [ebp - 0x154], 0
push 0x44db7c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042fd20
add esp, 8
test eax, eax
jne 0x426da3
cmp dword [ebp - 0x154], 1
jne 0x426da3
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042cd80
add esp, 8
jmp 0x42759f
push str.no_net
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042fd20
add esp, 8
test eax, eax
jne 0x426df8
cmp dword [ebp - 0x154], 0
jne 0x426df8
push 0x64
lea eax, [ebp - 0x1dc]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x426df3
push 0x44db8c
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042fbf0
add esp, 8
jmp 0x426e0b
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042fbf0
add esp, 8
call fcn.0042a2b8
mov dword [ebp - 0x178], eax
test byte [ebp - 0x178], 1
je 0x426e32
mov dword [ebp - 0x178], 1
jmp 0x426e58
test byte [ebp - 0x178], 2
je 0x426e4e
mov dword [ebp - 0x178], 2
jmp 0x426e58
mov eax, 0xffffffff
jmp 0x42759f
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042aa7c
add esp, 4
test eax, eax
jne 0x426e86
test byte [ebp - 0x178], 2
je 0x426e86
mov dword [ebp - 0x178], 2
call fcn.00425b80
test eax, eax
jge 0x426ef6
cmp dword [ebp - 0x178], 2
jne 0x426ebc
push 0x3e8
push 2
push 6
call fcn.0042be4a
add esp, 0xc
mov dword [ebp - 0x1e0], eax
jmp 0x426ed0
push 0
push 2
push 2
call fcn.0042be4a
add esp, 0xc
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jge 0x426ee7
mov eax, 0x3f
jmp 0x42759f
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.00425b95
add esp, 4
cmp dword [ebp - 0x178], 2
jne 0x426f46
lea eax, [ebp - 0x1dc]
push eax
push str.Going_to_send_msg_to_host__s_n
call fcn.004263e0
add esp, 8
push 0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042b627
add esp, 0xc
test eax, eax
je 0x426f41
mov eax, 0x3d
jmp 0x42759f
jmp 0x426f70
push 0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00429ded
add esp, 0xc
test eax, eax
je 0x426f70
mov eax, 0x3d
jmp 0x42759f
cmp dword [0x44d9a4], 0
je 0x426f95
call fcn.004275a4
push eax
call fcn.0042c47d
add esp, 4
mov dword [0x44d9a4], 0
call fcn.00428ece
mov dword [0x453c14], eax
lea eax, [ebp - 0x150]
push eax
call fcn.004275a4
mov eax, dword [eax]
push eax
call fcn.004275b9
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x427144
push 0x58
call fcn.00430255
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x426ff0
mov eax, 0x40
jmp 0x42759f
cmp dword [ebp - 0x178], 2
jne 0x42709e
mov eax, dword [ebp - 0x11c]
add eax, 8
mov dword [ebp - 0x120], eax
push 0x10
push 0
mov eax, dword [ebp - 0x120]
push eax
call fcn.0042f0a0
add esp, 0xc
mov eax, dword [ebp - 0x120]
mov word [eax], 6
call fcn.00425baf
push eax
call fcn.0042c09e
add esp, 4
mov ecx, dword [ebp - 0x120]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1dc]
push eax
push str.host__s_has_IPX_address__s_n
call fcn.004263e0
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0042b578
add esp, 8
test eax, eax
jne 0x427085
mov eax, 0x3d
jmp 0x42759f
lea eax, [ebp - 0x150]
push eax
push str.nsproIPXAddrToSockaddr__s__succeeded._n
call fcn.004263e0
add esp, 8
jmp 0x42710a
push 0x10
push 0
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
call fcn.0042f0a0
add esp, 0xc
mov eax, dword [ebp - 0x11c]
mov word [eax + 8], 2
call fcn.00425baf
push eax
call fcn.0042c09e
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov word [ecx + 0xa], ax
lea eax, [ebp - 0x150]
push eax
call fcn.0042bdbd
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 0xc], 0xffffffff
jne 0x42710a
mov eax, 0x3d
jmp 0x42759f
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x11c]
add eax, 0x18
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [ebp - 0x11c]
mov dword [eax], 1
mov eax, dword [ebp - 0x11c]
push eax
call fcn.004275a4
push eax
call fcn.0042c491
add esp, 8
mov dword [0x453c08], 0x3d
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
and eax, 0x1fff
mov dword [0x453c0c], eax
mov dword [0x453c10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004307e0
add esp, 4
inc eax
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, 0x453c08
add eax, 0x10
push eax
call fcn.0042ff20
add esp, 0xc
push 0x1a0
push 0
push 0x453a60
call fcn.0042f0a0
add esp, 0xc
mov dword [ebp - 0x124], 0x1a0
lea eax, [ebp - 0x168]
push eax
call fcn.00426cc5
add esp, 4
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x118], 1
push 0x1a0
push 0
push 0x453db0
call fcn.0042f0a0
add esp, 0xc
mov eax, dword [0x453c08]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453db0], eax
mov eax, dword [0x453c0c]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453db4], eax
mov eax, dword [0x453c10]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453db8], eax
mov eax, dword [0x453c14]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453dbc], eax
mov eax, 0x453c08
add eax, 0x10
push eax
mov eax, 0x453db0
add eax, 0x10
push eax
call fcn.0042fbf0
add esp, 8
cmp dword [ebp - 0x15c], 0
jne 0x427564
cmp dword [ebp - 0x158], 3
jge 0x427564
cmp dword [ebp - 0x178], 2
jne 0x4272ee
push 0x10
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
call fcn.00425b80
push eax
call sub.WSOCK32.dll_connect
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x118], 0
je 0x4272e9
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0x453db0
call fcn.00425b80
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
cmp dword [ebp - 0x124], eax
je 0x4272e9
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x174], eax
mov eax, 0x3e
jmp 0x42759f
jmp 0x427345
cmp dword [ebp - 0x118], 0
je 0x427345
push 0x10
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0x453db0
call fcn.00425b80
push eax
call fcn.0042bf9a
add esp, 0x18
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
cmp dword [ebp - 0x124], eax
je 0x427345
mov eax, 0x3e
jmp 0x42759f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0x40
jae 0x42737e
call fcn.00425b80
mov ecx, dword [ebp - 0x114]
mov dword [ebp + ecx*4 - 0x110], eax
inc dword [ebp - 0x114]
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x158]
mov eax, dword [ebp + eax*4 - 0x168]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x170]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00425b80
inc eax
push eax
call fcn.0042be9a
add esp, 0x14
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x1e4], eax
jmp 0x427540
cmp dword [ebp - 0x12c], 0x2714
je 0x4273ed
mov eax, 0x6d
jmp 0x42759f
jmp 0x42755f
mov dword [ebp - 0x118], 1
inc dword [ebp - 0x158]
jmp 0x42755f
mov dword [ebp - 0x128], 0x10
push 0x1a0
push 0
push 0x453db0
call fcn.0042f0a0
add esp, 0xc
cmp dword [ebp - 0x178], 2
jne 0x42746e
push 0
push 0x1a0
push 0x453db0
call fcn.00425b80
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x1a0
je 0x427469
mov eax, 0x6c
jmp 0x42759f
jmp 0x4274b0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1a0
push 0x453db0
call fcn.00425b80
push eax
call fcn.0042bff6
add esp, 0x18
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x4274b0
mov eax, 0x6c
jmp 0x42759f
mov eax, dword [0x453db0]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453a60], eax
mov eax, dword [0x453db4]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453a64], eax
mov eax, dword [0x453db8]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453a68], eax
mov eax, dword [0x453dbc]
push eax
call fcn.0042c0e4
add esp, 4
mov dword [0x453a6c], eax
mov eax, 0x453db0
add eax, 0x10
push eax
mov eax, 0x453a60
add eax, 0x10
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [0x453c0c]
cmp dword [0x453a64], eax
je 0x42752c
jmp 0x42755f
mov dword [ebp - 0x15c], 1
jmp 0x42755f
cmp dword [ebp - 0x1e4], 0xffffffff
je 0x4273d3
cmp dword [ebp - 0x1e4], 0
je 0x4273f2
jmp 0x427407
jmp 0x427252
cmp dword [ebp - 0x15c], 1
je 0x42757b
mov eax, 0x3c
jmp 0x42759f
mov eax, dword [ebp - 0x11c]
inc dword [eax]
mov eax, 0x453a60
add eax, 0x10
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042fbf0
add esp, 8
xor eax, eax
jmp 0x42759f
pop edi
pop esi
pop ebx
leave
ret