Function at 0x1000b3e0
Capabilities:
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x13f8
call fcn.10043430
mov eax, dword [0x10059004]
xor eax, esp
mov dword [esp + 0x13f4], eax
push esi
push edi
lea eax, [esp + 0x268]
mov dword [esp + 0x14], 0
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xc
push dword [0x1005bb44]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
movaps xmmword [esp + 0x38], xmm0
push 0x1005bb24
movaps xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 6
mov dword [esp + 0x3c], 1
movq qword [0x1005bb24], xmm0
mov dword [0x1005bb2c], 0
call fcn.1002013e
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push 0x1005bb24
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1000b534
mov eax, dword [esp + 0x14]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [esp + 0x20]
mov dword [esi + 0xc], eax
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
jne 0x1000b4f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_with_error:__ld_n
call fcn.1000ab40
add esp, 8
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x1000b534
mov eax, dword [esp + 0x14]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1000b54d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind_failed_with_error:__d_n
call fcn.1000ab40
add esp, 8
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x13f4]
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push closesocket
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1000b584
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen_failed_with_error:__d_n
call fcn.1000ab40
add esp, 8
jmp 0x1000b52b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], eax
push ecx
inc eax
mov dword [esp + 0x30], 1
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x58]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1000b5f0
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
je 0x1000b52b
nop dword [eax]
nop dword [eax + eax]
push 0
push 0x1000
lea eax, [esp + 0x400]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x1000b762
push eax
lea eax, [esp + 0x3fc]
mov ecx, esi
push eax
call fcn.1000aec0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.10010e40
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3f8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.10010e40
mov ecx, dword [esi]
call fcn.10010d40
mov ecx, dword [esi]
mov dword [esp + 0x10], eax
call fcn.10010d40
mov edi, eax
mov ecx, esi
mov eax, dword [esp + 0x10]
push dword [eax]
push edi
call fcn.1000aec0
mov eax, dword [esp + 0x10]
push 0
push dword [eax]
push edi
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000b749
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
lea ecx, [esp + 0x16c]
mov dword [esp + 0x170], eax
push ecx
push eax
mov dword [esp + 0x174], 1
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x1000b6e7
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x10], eax
mov eax, 1
jmp 0x1000b6e9
xor eax, eax
cmp dword [esp + 0x18], 0
mov dword [0x1005bb30], eax
jg 0x1000b5f0
push 1
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [esp + 0x18], eax
push dword [esi + 0x10]
cmp eax, 0xffffffff
jne 0x1000b72d
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x13f4]
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x13f4]
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff5
pop edi
pop esi
mov ecx, dword [esp + 0x13f4]
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
push 1
push dword [esi + 0x10]
jne 0x1000b786
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esp + 0x13fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_shutdown]
push 0xffffffffffffffff
call fcn.100203ad
int3