Function at 0x10034046
Capabilities:
Get socket status

Disassembly:
sub esp, 0x34c
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [esp + 0x360]
push ebx
push ebp
xor ebx, ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x1003409c
mov ecx, accept
jg 0x10034092
mov ebp, dword [esp + 0x36c]
cmp ebp, ecx
jb 0x100340a3
mov eax, ebx
mov ebp, ecx
mov dword [esp + 0x10], eax
jmp 0x100340a3
mov ebp, dword [esp + 0x36c]
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
jne 0x100340cd
cmp dword [esp + 0x364], esi
jne 0x100340cd
cmp dword [esp + 0x368], esi
jne 0x100340cd
push ebp
call fcn.100343b9
pop ecx
jmp 0x100343a0
cmp eax, ebx
jl 0x100340f7
jg 0x100340d7
cmp ebp, ebx
jbe 0x100340f7
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], ebp
call fcn.1002b9bb
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]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x364]
pop ecx
mov eax, ebx
or edx, 0xffffffff
mov ecx, ebx
xor edi, edi
mov dword [esp + 0x254], eax
mov dword [esp + 0x4c], ecx
cmp esi, 0xffffffff
je 0x1003412e
lea ecx, [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x258], esi
mov dword [esp + 0x254], eax
mov edx, esi
mov esi, dword [esp + 0x364]
cmp esi, 0xffffffff
je 0x10034197
test ecx, ecx
je 0x10034149
cmp dword [esp + edi*4 + 0x50], esi
je 0x10034149
inc edi
cmp edi, ecx
jb 0x1003413e
cmp edi, ecx
jne 0x1003415f
cmp ecx, 0x40
jae 0x1003415f
mov dword [esp + edi*4 + 0x50], esi
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x4c], ecx
mov edi, ebx
test eax, eax
je 0x10034173
cmp dword [esp + edi*4 + 0x258], esi
je 0x10034173
inc edi
cmp edi, eax
jb 0x10034165
cmp edi, eax
jne 0x10034192
cmp eax, 0x40
jae 0x10034192
mov dword [esp + edi*4 + 0x258], esi
mov eax, dword [esp + 0x254]
inc eax
mov dword [esp + 0x254], eax
cmp esi, edx
cmova edx, esi
mov edi, dword [esp + 0x368]
mov dword [esp + 0x150], ebx
cmp edi, 0xffffffff
je 0x100341ec
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], 1
mov esi, ebx
test eax, eax
je 0x100341d0
cmp dword [esp + esi*4 + 0x258], edi
je 0x100341d0
inc esi
cmp esi, eax
jb 0x100341c2
cmp esi, eax
jne 0x100341e7
cmp eax, 0x40
jae 0x100341e7
mov dword [esp + esi*4 + 0x258], edi
inc dword [esp + 0x254]
cmp edi, edx
cmova edx, edi
mov esi, dword [esp + 0x10]
cmp esi, ebx
jg 0x10034202
jl 0x100341fa
cmp ebp, ebx
jae 0x10034202
mov edi, ebx
mov dword [esp + 0x18], ebx
jmp 0x1003420a
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edi
lea eax, [edx + 1]
mov dword [esp + 0x28], eax
cmp esi, ebx
jl 0x1003423c
jg 0x1003421b
cmp ebp, ebx
jbe 0x1003423c
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x24], 0x3e8
idiv dword [esp + 0x24]
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jmp 0x1003424a
mov eax, ebp
or eax, esi
jne 0x1003424a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push edi
xor edx, edx
cmp dword [esp + 0x154], edx
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x158]
cmove eax, edx
push eax
test ecx, ecx
lea eax, [esp + 0x58]
cmove eax, edx
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100342ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10034299
cmp dword [0x1009a3d8], ebx
jne 0x100342f0
cmp eax, 0x2714
jne 0x100342f0
cmp esi, ebx
jl 0x100342e1
jg 0x100342a3
cmp ebp, ebx
jbe 0x100342e1
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, ebp
sub ecx, eax
add esp, 0x20
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x100342ea
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
jmp 0x10034211
mov eax, ebx
test eax, eax
jns 0x100342f8
or eax, 0xffffffff
jmp 0x100343a0
jne 0x10034301
xor eax, eax
jmp 0x100343a0
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
je 0x10034335
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne ebx, eax
lea eax, [esp + 0x254]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034335
or ebx, 4
mov esi, dword [esp + 0x364]
cmp esi, 0xffffffff
je 0x10034368
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034353
or ebx, 8
lea eax, [esp + 0x254]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034368
or ebx, 4
mov edi, dword [esp + 0x368]
cmp edi, 0xffffffff
je 0x1003439e
lea eax, [esp + 0x150]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034389
or ebx, 2
lea eax, [esp + 0x254]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1003439e
or ebx, 4
mov eax, ebx
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x34c
ret