Function at 0x10033cf2
Capabilities:
Get socket status

Disassembly:
sub esp, 0x34c
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x348], eax
mov edx, dword [esp + 0x350]
push ebx
mov ebx, dword [esp + 0x35c]
push ebp
xor ebp, ebp
push esi
xorps xmm0, xmm0
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], ebp
test edx, edx
je 0x10033d4f
mov ecx, dword [esp + 0x364]
mov eax, ebp
test ecx, ecx
je 0x10033d4f
cmp dword [edx + eax*8], 0xffffffff
jne 0x10033d6f
inc eax
cmp eax, ecx
jb 0x10033d44
push ebx
call fcn.100343b9
pop ecx
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x34c
ret
test ebx, ebx
jle 0x10033d90
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], ebx
call fcn.1002b9bb
mov edx, dword [esp + 0x18]
mov esi, eax
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
mov esi, ebp
mov edi, ebp
mov ecx, ebp
or ebx, 0xffffffff
mov dword [esp + 0x4c], esi
mov dword [esp + 0x150], edi
mov dword [esp + 0x254], ecx
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [edx + ebp*8 + 6], ax
mov eax, dword [edx + ebp*8]
cmp eax, 0xffffffff
je 0x10033e96
movzx ebx, word [edx + ebp*8 + 4]
mov dword [esp + 0x1c], ebx
test ebx, 0x710
mov ebx, dword [esp + 0x10]
je 0x10033e96
mov edx, dword [esp + 0x1c]
cmp eax, ebx
cmova ebx, eax
mov dword [esp + 0x10], ebx
test edx, 0x300
je 0x10033e1b
xor edx, edx
test esi, esi
je 0x10033e01
cmp dword [esp + edx*4 + 0x50], eax
je 0x10033e01
inc edx
cmp edx, esi
jb 0x10033df6
cmp edx, esi
jne 0x10033e17
cmp esi, 0x40
jae 0x10033e17
mov dword [esp + edx*4 + 0x50], eax
mov esi, dword [esp + 0x4c]
inc esi
mov dword [esp + 0x4c], esi
mov edx, dword [esp + 0x1c]
test dl, 0x10
je 0x10033e57
xor edx, edx
test edi, edi
je 0x10033e34
cmp dword [esp + edx*4 + 0x154], eax
je 0x10033e34
inc edx
cmp edx, edi
jb 0x10033e26
cmp edx, edi
jne 0x10033e53
cmp edi, 0x40
jae 0x10033e53
mov dword [esp + edx*4 + 0x154], eax
mov edi, dword [esp + 0x150]
inc edi
mov dword [esp + 0x150], edi
mov edx, dword [esp + 0x1c]
test edx, 0x600
je 0x10033e92
xor edx, edx
test ecx, ecx
je 0x10033e73
cmp dword [esp + edx*4 + 0x258], eax
je 0x10033e73
inc edx
cmp edx, ecx
jb 0x10033e65
cmp edx, ecx
jne 0x10033e92
cmp ecx, 0x40
jae 0x10033e92
mov dword [esp + edx*4 + 0x258], eax
mov ecx, dword [esp + 0x254]
inc ecx
mov dword [esp + 0x254], ecx
mov edx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x364]
jb 0x10033daf
mov ebx, dword [esp + 0x20]
test esi, esi
jne 0x10033eb8
test edi, edi
jne 0x10033eb8
test ecx, ecx
je 0x10033d4f
xor eax, eax
test ebx, ebx
lea ebp, [esp + 0x24]
cmovs ebp, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x10033ef1
mov eax, dword [esp + 0x18]
cdq
mov dword [esp + 0x20], 0x3e8
idiv dword [esp + 0x20]
imul edx, edx, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jmp 0x10033efd
jne 0x10033efd
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
xor edx, edx
test ecx, ecx
push ebp
lea eax, [esp + 0x258]
cmove eax, edx
push eax
xor ecx, ecx
test edi, edi
lea eax, [esp + 0x158]
cmove eax, ecx
push eax
lea eax, [esp + 0x58]
test esi, esi
cmove eax, ecx
push eax
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10033fa6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10033f4f
cmp dword [0x1009a3d8], 0
jne 0x10033fac
cmp eax, 0x2714
jne 0x10033fac
test ebx, ebx
jle 0x10033f89
lea eax, [esp + 0x3c]
push eax
call fcn.1002b9bb
sub esp, 0xc
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002b97f
mov ecx, ebx
sub ecx, eax
add esp, 0x20
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x10033fa0
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x150]
mov ecx, dword [esp + 0x254]
jmp 0x10033ecc
xor ebx, ebx
mov eax, ebx
jmp 0x10033fa8
xor ebx, ebx
test eax, eax
jns 0x10033fb4
or eax, 0xffffffff
jmp 0x10033d56
jne 0x10033fbd
xor eax, eax
jmp 0x10033d56
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
mov edi, ebx
add esi, 6
xor ecx, ecx
cmp dword [esi - 6], 0xffffffff
mov word [esi], cx
je 0x10034032
lea eax, [esp + 0x4c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10033ff1
mov eax, 0x300
or word [esi], ax
lea eax, [esp + 0x150]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034009
or word [esi], 0x10
lea eax, [esp + 0x254]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034025
mov eax, 0x400
or word [esi], ax
mov eax, dword [esp + 0x364]
cmp word [esi], bx
je 0x10034032
inc edi
add esi, 8
dec eax
mov dword [esp + 0x364], eax
jne 0x10033fcd
mov eax, edi
jmp 0x10033d56