Function at 0x42cfe0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a43b1
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x619490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x94], 0
mov byte [edi + 0x44], 0
call fcn.00409e50
push 0
push 1
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x42d12f
mov byte [ebp - 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x90]
call fcn.00405610
push eax
mov edx, str.create_socket_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004058a0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x58]
cmp eax, edi
je 0x42d0ac
cmp dword [ebp - 0x44], 0x10
jb 0x42d091
push dword [ebp - 0x58]
call fcn.0043dd17
add esp, 4
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004043e0
cmp dword [ebp - 0x60], 0x10
jb 0x42d0bd
push dword [ebp - 0x74]
call fcn.0043dd17
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x42d0e7
push dword [ebp - 0x90]
call fcn.0043dd17
add esp, 4
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.004116f0
cmp dword [ebp - 0x2c], 0x10
jb 0x42d103
push dword [ebp - 0x40]
call fcn.0043dd17
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x42d376
push dword [ebp - 0x58]
call fcn.0043dd17
add esp, 4
jmp 0x42d376
lea eax, [ebp - 0xdc]
mov ecx, edi
push eax
call fcn.0042cd40
mov ebx, eax
mov byte [ebp - 4], 2
lea eax, [ebx + 4]
movzx ecx, byte [ebx]
mov byte [ebp - 0x5c], cl
movzx ecx, byte [ebx + 1]
mov byte [ebp - 0x5b], cl
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x42d164
push 0xffffffffffffffff
push 0
push eax
call fcn.004045f0
lea eax, [ebx + 0x1c]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x42d178
push 0xffffffffffffffff
push 0
push eax
call fcn.004045f0
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x44]
mov byte [ebp - 4], 0
cmp dword [ebp - 0xac], 0x10
mov dword [ebp - 0x18], eax
jb 0x42d1ab
push dword [ebp - 0xc0]
call fcn.0043dd17
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
jb 0x42d1dd
push dword [ebp - 0xd8]
call fcn.0043dd17
add esp, 4
cmp byte [ebp - 0x5c], 0
je 0x42d363
lea eax, [ebp - 0xdc]
mov ecx, edi
push eax
call fcn.0042cf30
lea ecx, [ebp - 0xdc]
call fcn.00406560
push 0x10
call fcn.0043dce1
mov ebx, eax
add esp, 4
mov eax, 2
mov word [ebx], ax
movzx ecx, word [edi + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x42d22e
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push ebx
mov dword [ebx + 4], eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42d2f2
mov byte [ebp - 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x90]
call fcn.00405610
push eax
mov edx, str.bind_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004058a0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x78], eax
add esp, 4
cmp ecx, eax
je 0x42d2b5
cmp dword [ebp - 0x44], 0x10
jb 0x42d29a
push dword [ebp - 0x58]
call fcn.0043dd17
mov eax, dword [ebp - 0x78]
add esp, 4
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004043e0
cmp dword [ebp - 0x60], 0x10
jb 0x42d2c6
push dword [ebp - 0x74]
call fcn.0043dd17
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x42d351
push dword [ebp - 0x90]
call fcn.0043dd17
add esp, 4
jmp 0x42d351
push 0x14
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x42d35a
mov byte [ebp - 0x5c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x74]
call fcn.00405610
push eax
mov edx, str.listen_error:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.004058a0
add esp, 4
lea ecx, [ebp - 0x58]
push eax
call fcn.00409660
lea ecx, [ebp - 0x90]
call fcn.00404390
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.00404390
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.0043dd17
add esp, 4
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.004116f0
lea ecx, [ebp - 0x5c]
call fcn.00406560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret 4