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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 8], 0x10
mov dword [ebp - 0xc], 0x10000
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x16138], 0
push 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x171c0
push ecx
call fcn.0059e3c0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x3068], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1613c], 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x154f4], cx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3064], 0xffffffff
je 0x45ed76
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
je 0x45e93c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
jle 0x45e7df
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
jmp 0x45e805
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
neg eax
cdq
mov ecx, 0xf4240
idiv ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
neg eax
cdq
mov ecx, 0xf4240
idiv ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x120], 0
cmp dword [ebp - 0x120], 0x40
jae 0x45e83d
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3064]
mov dword [ebp + edx*4 - 0x11c], ecx
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
xor eax, eax
jne 0x45e80f
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3064]
add eax, 1
push eax
call sub.WSOCK32.dll_select
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jle 0x45e880
jmp 0x45e915
cmp dword [ebp - 0x124], 0
jne 0x45e8b6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], 0
push 0x18
push 0x5f58bc
push 0x5f58dc
mov edx, dword [ebp + 8]
push edx
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
jmp 0x45eda6
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x2714
je 0x45e910
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x124]
mov dword [eax + 0x16140], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f100
add esp, 4
push 0x18
push 0x5f58e4
mov eax, dword [ebp + 8]
push eax
call fcn.0045dee0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471450
add esp, 0x10
or eax, 0xffffffff
jmp 0x45eda6
jmp 0x45e841
mov dword [ebp - 0x128], 1
lea edx, [ebp - 0x128]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3064]
push ecx
call sub.WSOCK32.dll_ioctlsocket
jmp 0x45e961
mov dword [ebp - 0x12c], 0
lea edx, [ebp - 0x12c]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3064]
push ecx
call sub.WSOCK32.dll_ioctlsocket
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
add eax, 0x171c0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3064]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2ffc]
call edx
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3068], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x171d0], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3068], 0xffffffff
je 0x45ed12
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x171c4]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16114], eax
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x171c2]
push eax
call sub.WSOCK32.dll_ntohs
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x16118], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x48], 0x80
jne 0x45ea85
push 4
push 0
lea ecx, [ebp - 0x130]
push ecx
call fcn.0059e3c0
add esp, 0xc
mov edx, 1
mov word [ebp - 0x130], dx
xor eax, eax
mov word [ebp - 0x12e], ax
push 4
lea ecx, [ebp - 0x130]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3068]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45ea83
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_LINGER_failed_in_soap_accept__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
jmp 0x45eaf5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x48], 0
je 0x45eaf5
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
push edx
push 0xffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3068]
push ecx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45eaf5
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0x16140], eax
push 0x18
push str.setsockopt_failed_in_soap_accept__
mov eax, dword [ebp + 8]
push eax
call fcn.0045dee0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471520
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
or edx, dword [ecx + 0xc]
and edx, 0x10
je 0x45eb68
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3068]
push edx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45eb68
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_KEEPALIVE_failed_in_soap_accept__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
push 4
lea edx, [ebp - 0xc]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3068]
push ecx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45ebcd
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0x16140], eax
push 0x18
push str.setsockopt_SO_SNDBUF_failed_in_soap_accept__
mov eax, dword [ebp + 8]
push eax
call fcn.0045dee0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471520
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3068]
push edx
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45ec32
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_SO_RCVBUF_failed_in_soap_accept__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
and eax, 4
jne 0x45ec9c
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3068]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x45ec9c
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], eax
push 0x18
push str.setsockopt_TCP_NODELAY_failed_in_soap_accept__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
je 0x45ece5
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x134]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3064]
push edx
call sub.WSOCK32.dll_ioctlsocket
lea eax, [ebp - 0x134]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3068]
push edx
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
or edx, dword [ecx + 0xc]
and edx, 0x10
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp + 8]
mov word [eax + 0x154f4], dx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3068]
jmp 0x45eda6
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45ed6f
cmp dword [ebp - 0x10], 0x2714
je 0x45ed6f
cmp dword [ebp - 0x10], 0x2733
je 0x45ed6f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x16140], eax
push 0x18
push str.accept_failed_in_soap_accept__
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dee0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00471520
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.0045f100
add esp, 4
or eax, 0xffffffff
jmp 0x45eda6
jmp 0x45e7b7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16140], 0
push 0x18
push str.no_master_socket_in_soap_accept__
mov edx, dword [ebp + 8]
push edx
call fcn.0045dee0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00471520
add esp, 0x10
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret