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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8674
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x94]
mov dword [esp + 0x48], 0
mov byte [edi + 0x44], 0
call fcn.0040a220
push 0
push 1
push 2
mov dword [esp + 0xfc], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x43a2f6
mov byte [esp + 0x94], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0x30]
call fcn.004057e0
push eax
mov edx, str.create_socket_error:
mov byte [esp + 0xf4], 1
lea ecx, [esp + 0x18]
call fcn.00405a70
mov edi, eax
add esp, 4
lea eax, [esp + 0x98]
cmp eax, edi
je 0x43a24b
cmp dword [esp + 0xac], 0x10
jb 0x43a220
push dword [esp + 0x98]
call fcn.0044ffc1
add esp, 4
push edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
call fcn.004045c0
cmp dword [esp + 0x28], 0x10
jb 0x43a25e
push dword [esp + 0x14]
call fcn.0044ffc1
add esp, 4
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x43a28e
push dword [esp + 0x30]
call fcn.0044ffc1
add esp, 4
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.00413370
cmp dword [esp + 0xc4], 0x10
jb 0x43a2b6
push dword [esp + 0xb0]
call fcn.0044ffc1
add esp, 4
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
jb 0x43a5a0
push dword [esp + 0x98]
call fcn.0044ffc1
add esp, 4
jmp 0x43a5a0
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00439ea0
mov ebx, eax
mov byte [esp + 0xf0], 2
lea eax, [ebx + 4]
movzx ecx, byte [ebx]
mov byte [esp + 0x94], cl
movzx ecx, byte [ebx + 1]
mov byte [esp + 0x95], cl
lea ecx, [esp + 0x98]
cmp ecx, eax
je 0x43a339
push 0xffffffffffffffff
push 0
push eax
call fcn.004047d0
lea eax, [ebx + 0x1c]
lea ecx, [esp + 0xb0]
cmp ecx, eax
je 0x43a351
push 0xffffffffffffffff
push 0
push eax
call fcn.004047d0
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc8], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0x44]
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0xd8], eax
jb 0x43a394
push dword [esp + 0x68]
call fcn.0044ffc1
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
jb 0x43a3bc
push dword [esp + 0x50]
call fcn.0044ffc1
add esp, 4
cmp byte [esp + 0x94], 0
je 0x43a585
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.0043a090
lea ecx, [esp + 0x4c]
call fcn.00406730
push 0x10
call fcn.0044ff8b
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 0x43a40d
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 0x43a502
mov byte [esp + 0x94], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0x30]
call fcn.004057e0
push eax
mov edx, str.bind_error:
mov byte [esp + 0xf4], 3
lea ecx, [esp + 0x18]
call fcn.00405a70
lea ecx, [esp + 0x9c]
mov dword [esp + 0x30], eax
add esp, 4
cmp ecx, eax
je 0x43a4bd
cmp dword [esp + 0xac], 0x10
jb 0x43a492
push dword [esp + 0x98]
call fcn.0044ffc1
mov eax, dword [esp + 0x30]
add esp, 4
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
call fcn.004045c0
cmp dword [esp + 0x28], 0x10
jb 0x43a4d0
push dword [esp + 0x14]
call fcn.0044ffc1
add esp, 4
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x43a573
push dword [esp + 0x30]
call fcn.0044ffc1
add esp, 4
jmp 0x43a573
push 0x14
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x43a57c
mov byte [esp + 0x94], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0x14]
call fcn.004057e0
push eax
mov edx, str.listen_error:
mov byte [esp + 0xf4], 4
lea ecx, [esp + 0x34]
call fcn.00405a70
add esp, 4
lea ecx, [esp + 0x98]
push eax
call fcn.00409880
lea ecx, [esp + 0x30]
call fcn.00404560
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 0
call fcn.00404560
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.0044ffc1
add esp, 4
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.00413370
lea ecx, [esp + 0x94]
call fcn.00406730
mov eax, esi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00577e97
mov esp, ebp
pop ebp
ret 4