Function at 0x418b9e
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 [0x432600]
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 0x418bea
mov eax, 0xffffffff
jmp 0x41943f
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
call fcn.0041d155
cmp eax, 1
jne 0x418c08
mov dword [ebp - 0x154], 0
push 0x432604
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040cc40
add esp, 8
test eax, eax
jne 0x418c43
cmp dword [ebp - 0x154], 1
jne 0x418c43
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041ec20
add esp, 8
jmp 0x41943f
push str.no_net
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040cc40
add esp, 8
test eax, eax
jne 0x418c98
cmp dword [ebp - 0x154], 0
jne 0x418c98
push 0x64
lea eax, [ebp - 0x1dc]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x418c93
push 0x432614
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040a650
add esp, 8
jmp 0x418cab
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040a650
add esp, 8
call fcn.0041c158
mov dword [ebp - 0x178], eax
test byte [ebp - 0x178], 1
je 0x418cd2
mov dword [ebp - 0x178], 1
jmp 0x418cf8
test byte [ebp - 0x178], 2
je 0x418cee
mov dword [ebp - 0x178], 2
jmp 0x418cf8
mov eax, 0xffffffff
jmp 0x41943f
lea eax, [ebp - 0x1dc]
push eax
call fcn.0041c91c
add esp, 4
test eax, eax
jne 0x418d26
test byte [ebp - 0x178], 2
je 0x418d26
mov dword [ebp - 0x178], 2
call fcn.00417a20
test eax, eax
jge 0x418d96
cmp dword [ebp - 0x178], 2
jne 0x418d5c
push 0x3e8
push 2
push 6
call fcn.0041dcea
add esp, 0xc
mov dword [ebp - 0x1e0], eax
jmp 0x418d70
push 0
push 2
push 2
call fcn.0041dcea
add esp, 0xc
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jge 0x418d87
mov eax, 0x3f
jmp 0x41943f
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.00417a35
add esp, 4
cmp dword [ebp - 0x178], 2
jne 0x418de6
lea eax, [ebp - 0x1dc]
push eax
push str.Going_to_send_msg_to_host__s_n
call fcn.00418280
add esp, 8
push 0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0041d4c7
add esp, 0xc
test eax, eax
je 0x418de1
mov eax, 0x3d
jmp 0x41943f
jmp 0x418e10
push 0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0041bc8d
add esp, 0xc
test eax, eax
je 0x418e10
mov eax, 0x3d
jmp 0x41943f
cmp dword [0x43242c], 0
je 0x418e35
call fcn.00419444
push eax
call fcn.0041e31d
add esp, 4
mov dword [0x43242c], 0
call fcn.0041ad6e
mov dword [0x4359dc], eax
lea eax, [ebp - 0x150]
push eax
call fcn.00419444
mov eax, dword [eax]
push eax
call fcn.00419459
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x418fe4
push 0x58
call fcn.0040acea
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x418e90
mov eax, 0x40
jmp 0x41943f
cmp dword [ebp - 0x178], 2
jne 0x418f3e
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.00409d20
add esp, 0xc
mov eax, dword [ebp - 0x120]
mov word [eax], 6
call fcn.00417a4f
push eax
call fcn.0041df3e
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.00418280
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0041d418
add esp, 8
test eax, eax
jne 0x418f25
mov eax, 0x3d
jmp 0x41943f
lea eax, [ebp - 0x150]
push eax
push str.nsproIPXAddrToSockaddr__s__succeeded._n
call fcn.00418280
add esp, 8
jmp 0x418faa
push 0x10
push 0
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp - 0x11c]
mov word [eax + 8], 2
call fcn.00417a4f
push eax
call fcn.0041df3e
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov word [ecx + 0xa], ax
lea eax, [ebp - 0x150]
push eax
call fcn.0041dc5d
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 0xc], 0xffffffff
jne 0x418faa
mov eax, 0x3d
jmp 0x41943f
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x11c]
add eax, 0x18
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [ebp - 0x11c]
mov dword [eax], 1
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00419444
push eax
call fcn.0041e331
add esp, 8
mov dword [0x4359d0], 0x3d
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
and eax, 0x1fff
mov dword [0x4359d4], eax
mov dword [0x4359d8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a820
add esp, 4
inc eax
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, 0x4359d0
add eax, 0x10
push eax
call fcn.00409460
add esp, 0xc
push 0x1a0
push 0
push 0x435828
call fcn.00409d20
add esp, 0xc
mov dword [ebp - 0x124], 0x1a0
lea eax, [ebp - 0x168]
push eax
call fcn.00418b65
add esp, 4
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x118], 1
push 0x1a0
push 0
push 0x435b78
call fcn.00409d20
add esp, 0xc
mov eax, dword [0x4359d0]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435b78], eax
mov eax, dword [0x4359d4]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435b7c], eax
mov eax, dword [0x4359d8]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435b80], eax
mov eax, dword [0x4359dc]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435b84], eax
mov eax, 0x4359d0
add eax, 0x10
push eax
mov eax, 0x435b78
add eax, 0x10
push eax
call fcn.0040a650
add esp, 8
cmp dword [ebp - 0x15c], 0
jne 0x419404
cmp dword [ebp - 0x158], 3
jge 0x419404
cmp dword [ebp - 0x178], 2
jne 0x41918e
push 0x10
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_connect
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x118], 0
je 0x419189
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0x435b78
call fcn.00417a20
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
cmp dword [ebp - 0x124], eax
je 0x419189
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x174], eax
mov eax, 0x3e
jmp 0x41943f
jmp 0x4191e5
cmp dword [ebp - 0x118], 0
je 0x4191e5
push 0x10
mov eax, dword [ebp - 0x11c]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0x435b78
call fcn.00417a20
push eax
call fcn.0041de3a
add esp, 0x18
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
cmp dword [ebp - 0x124], eax
je 0x4191e5
mov eax, 0x3e
jmp 0x41943f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0x40
jae 0x41921e
call fcn.00417a20
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.00417a20
inc eax
push eax
call fcn.0041dd3a
add esp, 0x14
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x1e4], eax
jmp 0x4193e0
cmp dword [ebp - 0x12c], 0x2714
je 0x41928d
mov eax, 0x6d
jmp 0x41943f
jmp 0x4193ff
mov dword [ebp - 0x118], 1
inc dword [ebp - 0x158]
jmp 0x4193ff
mov dword [ebp - 0x128], 0x10
push 0x1a0
push 0
push 0x435b78
call fcn.00409d20
add esp, 0xc
cmp dword [ebp - 0x178], 2
jne 0x41930e
push 0
push 0x1a0
push 0x435b78
call fcn.00417a20
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x1a0
je 0x419309
mov eax, 0x6c
jmp 0x41943f
jmp 0x419350
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1a0
push 0x435b78
call fcn.00417a20
push eax
call fcn.0041de96
add esp, 0x18
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x419350
mov eax, 0x6c
jmp 0x41943f
mov eax, dword [0x435b78]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435828], eax
mov eax, dword [0x435b7c]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x43582c], eax
mov eax, dword [0x435b80]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435830], eax
mov eax, dword [0x435b84]
push eax
call fcn.0041df84
add esp, 4
mov dword [0x435834], eax
mov eax, 0x435b78
add eax, 0x10
push eax
mov eax, 0x435828
add eax, 0x10
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [0x4359d4]
cmp dword [0x43582c], eax
je 0x4193cc
jmp 0x4193ff
mov dword [ebp - 0x15c], 1
jmp 0x4193ff
cmp dword [ebp - 0x1e4], 0xffffffff
je 0x419273
cmp dword [ebp - 0x1e4], 0
je 0x419292
jmp 0x4192a7
jmp 0x4190f2
cmp dword [ebp - 0x15c], 1
je 0x41941b
mov eax, 0x3c
jmp 0x41943f
mov eax, dword [ebp - 0x11c]
inc dword [eax]
mov eax, 0x435828
add eax, 0x10
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040a650
add esp, 8
xor eax, eax
jmp 0x41943f
pop edi
pop esi
pop ebx
leave
ret