Function at 0x43c6b0
Capabilities:
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x16214], ebx
mov dword [esi + 0x1729c], eax
mov dword [esi + 0x172a0], eax
push edi
lea edi, [esi + 0x1729c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
or eax, 0xffffffff
cmp dword [esi + 0x3044], eax
mov ebp, 1
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x24], 0x10000
mov dword [esp + 0x14], ebp
mov dword [esi + 0x3048], eax
mov dword [esi + 0x16218], ebx
mov word [esi + 0x155d4], bx
je 0x43cbca
lea esp, [esp]
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x43c7d2
jle 0x43c737
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
jmp 0x43c75c
mov eax, 0xbce4217d
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, ecx
neg eax
cdq
mov ecx, 0xf4240
idiv ecx
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x3044]
lea edx, [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
mov dword [esp + 0x38], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x3c], ebp
call sub.WS2_32.dll_select
cmp eax, ebx
jg 0x43c7bb
je 0x43c878
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x43c88d
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x3044]
push ebx
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
push edx
add eax, ebp
push eax
call sub.WS2_32.dll_select
cmp eax, ebx
jle 0x43c785
mov edx, dword [esi + 0x3044]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
mov dword [esp + 0x18], ebp
push edx
jmp 0x43c7e7
mov ecx, dword [esi + 0x3044]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
mov dword [esp + 0x18], ebx
push ecx
call sub.WS2_32.dll_ioctlsocket
mov eax, dword [esi + 0x3044]
mov ecx, dword [esi + 0x2ff8]
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
call ecx
mov edx, dword [esp + 0x28]
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esi + 0x3048], eax
mov dword [esi + 0x172ac], edx
jne 0x43c902
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x43c720
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x43c720
call sub.WS2_32.dll_WSAGetLastError
push str.accept_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
push str.accept_failed_in_soap_accept__
mov dword [esi + 0x1621c], ebx
push str.Timeout
jmp 0x43cbdd
call sub.WS2_32.dll_WSAGetLastError
mov edi, dword [esi + 0x16214]
cmp edi, 0xffffffff
mov dword [esi + 0x1621c], eax
je 0x43c8b6
cmp edi, 0x15
je 0x43c8b6
cmp edi, 0x17
je 0x43c8b6
cmp word [esi + 0x155d4], bx
jne 0x43c8d7
mov eax, dword [esi + 0x2ffc]
cmp eax, ebx
je 0x43c8d0
push esi
call eax
add esp, 4
cmp eax, ebx
mov dword [esi + 0x16214], eax
jne 0x43c8dd
mov word [esi + 0x155d4], bx
mov dword [esi + 0x16214], edi
mov edx, esi
call fcn.0043b9c0
push eax
mov ebx, str.accept_failed_in_soap_accept__
mov eax, esi
call fcn.00445fd0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, dword [esi + 0x172a0]
push eax
call sub.WS2_32.dll_ntohl
movzx ecx, word [esi + 0x1729e]
push ecx
mov dword [esi + 0x161f4], eax
call sub.WS2_32.dll_ntohs
test byte [esi + 0x48], 0x80
movzx edx, ax
mov dword [esi + 0x161f8], edx
je 0x43c999
mov ecx, dword [esi + 0x3048]
push 4
lea eax, [esp + 0x14]
push eax
push 0x80
push 0xffff
mov dword [esp + 0x20], ebx
push ecx
mov word [esp + 0x24], bp
mov word [esp + 0x26], bx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43c999
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_SO_LINGER_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, dword [esi + 0x48]
and eax, 0xffffff7f
je 0x43c9fa
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x3048]
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43c9fa
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, dword [esi + 8]
or ecx, dword [esi + 0xc]
test cl, 0x10
je 0x43ca5d
mov eax, dword [esi + 0x3048]
push 4
lea edx, [esp + 0x18]
push edx
push 8
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43ca5d
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_SO_KEEPALIVE_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov edx, dword [esi + 0x3048]
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push 0xffff
push edx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43cab8
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_SO_SNDBUF_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, dword [esi + 0x3048]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push ecx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43cb13
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_SO_RCVBUF_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
test byte [esi + 0xc], 4
jne 0x43cb6d
mov eax, dword [esi + 0x3048]
push 4
lea edx, [esp + 0x18]
push edx
push ebp
push 6
push eax
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x43cb6d
call sub.WS2_32.dll_WSAGetLastError
push str.setsockopt_TCP_NODELAY_failed_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], eax
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
call fcn.0043cc70
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
cmp dword [esi + 0x38], ebx
je 0x43cba2
mov edx, dword [esi + 0x3044]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x1c], ebx
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [esi + 0x3048]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ecx
call sub.WS2_32.dll_ioctlsocket
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shr eax, 4
shr edx, 4
or dl, al
mov eax, dword [esi + 0x3048]
and edx, ebp
mov word [esi + 0x155d4], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
push str.no_master_socket_in_soap_accept__
mov edx, esi
mov dword [esi + 0x1621c], ebx
call fcn.0043b9c0
push eax
mov edi, 0x15
mov eax, esi
call fcn.00446050
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x124
ret