Function at 0x10003a10
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135d40
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x10195170]
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 dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x150], esi
cmp dword [eax - 0xc], 0
je 0x10003c8c
xor eax, eax
mov dword [ebp - 0x1c], 0x1e
mov word [ebp - 0x44], ax
xorps xmm0, xmm0
mov dword [ebp - 0x2a], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
movdqu xmmword [ebp - 0x42], xmm0
movq qword [ebp - 0x32], xmm0
cmp dword [eax - 4], 1
jle 0x10003a8a
push dword [eax - 0xc]
lea ecx, [esi + 4]
call fcn.10003d40
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x20
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
cmp eax, 0xffffffff
jne 0x10003abf
push 0x1018d0cc
lea eax, [ebp - 0x164]
mov dword [ebp - 0x164], 0
push eax
call fcn.10020a35
cmp dword [esi + 8], 1
jae 0x10003b0b
mov eax, dword [esi + 4]
cmp dword [eax - 4], 1
jle 0x10003ad9
push dword [eax - 0xc]
lea ecx, [esi + 4]
call fcn.10003d40
push 0x1013a380
push dword [esi + 4]
mov ecx, esi
call fcn.10004f40
cmp eax, 1
jge 0x10003b08
push 0x1018d0cc
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0
push eax
call fcn.10020a35
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10003b2b
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xc], 0
mov ecx, esi
call fcn.10003f00
push 3
push 1
push 0x20
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [esi + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x10003b63
push 0x1018d0cc
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0
push eax
call fcn.10020a35
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x2a], eax
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 0x18], 1
call edi
cmp eax, 0xffffffff
jne 0x10003ba2
push 0x1018d0cc
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0
push eax
call fcn.10020a35
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], 1
test ecx, ecx
je 0x10003bdb
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [ebp - 0x24], edx
jmp 0x10003be2
mov dword [ebp - 0x24], 0xa
test ecx, ecx
je 0x10003bf6
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x20], edx
jmp 0x10003bfd
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x148]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x10003c33
push 0x1018d0cc
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0
push eax
call fcn.10020a35
cmp byte [esi + 0x10], 0
je 0x10003c6e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x8004667e
push dword [esi + 0xc]
call edi
cmp eax, 0xffffffff
jne 0x10003c6e
push 0x1018d0cc
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0
push eax
call fcn.10020a35
mov al, 1
jmp 0x10003c8e
xor al, al
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.10020a26
mov esp, ebp
pop ebp
ret