Function at 0x4108c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dfed
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x2c], eax
call eax
mov byte [ebp - 0x40], 1
mov dword [ebp - 4], 0
cmp byte [edi + 0xd0], 0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x38], eax
jne 0x410cce
mov eax, dword [edi + 0xa8]
lea ecx, [edi + 0xc0]
mov dword [ebp - 0x48], ecx
mov dword [eax], 0
mov eax, dword [edi + 0xb4]
mov dword [edi + 0xb0], 0xffffffff
mov dword [eax], 0
mov dword [edi + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov esi, dword [edi + 0xa8]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x28], eax
mov ebx, dword [esi]
test ebx, ebx
je 0x410998
mov edx, esi
mov edi, dword [ebp - 0x28]
lea eax, [edx + 4]
cmp dword [eax], edi
lea edx, [eax]
mov edi, dword [ebp - 0x30]
je 0x410a0f
inc ecx
cmp ecx, ebx
jb 0x410984
mov ecx, dword [edi + 0xac]
inc ebx
cmp ebx, ecx
jbe 0x4109fe
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, ebx
cmovae ebx, eax
lea eax, [ebx*4 + 4]
push eax
call fcn.0043436f
mov ecx, dword [edi + 0xa8]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi], ecx
xor ecx, ecx
mov edx, dword [edi + 0xa8]
cmp dword [edx], ecx
jbe 0x4109e9
mov eax, dword [edx + ecx*4 + 4]
mov dword [esi + ecx*4 + 4], eax
inc ecx
mov edx, dword [edi + 0xa8]
cmp ecx, dword [edx]
jb 0x4109d6
push edx
call fcn.004349f1
add esp, 4
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], ebx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov dword [esi + eax*4 + 4], ecx
mov eax, dword [edi + 0xa8]
inc dword [eax]
mov esi, dword [edi + 0xcc]
xor ebx, ebx
test esi, esi
je 0x410a34
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x410a34
mov esi, dword [esi + 4]
test esi, esi
jne 0x410a20
lea eax, [edi + 0x38]
mov dword [ebp - 0x28], 3
lea esi, [edi + 0xb0]
mov dword [ebp - 0x3c], eax
mov edi, eax
nop dword [eax]
push ecx
push edi
lea ecx, [esi - 8]
call fcn.0040ec50
cmp dword [esi], ebx
cmova ebx, dword [esi]
add edi, 0x1c
sub dword [ebp - 0x28], 1
lea esi, [esi + 0xc]
jne 0x410a50
mov edi, dword [ebp - 0x30]
push ecx
lea esi, [edi + 0x8c]
push esi
lea ecx, [edi + 0xb4]
call fcn.0040ec50
mov eax, dword [edi + 0xbc]
cmp eax, ebx
push ecx
push esi
lea ecx, [edi + 0xc0]
cmova ebx, eax
call fcn.0040ec50
mov eax, dword [edi + 0xc8]
mov ecx, 0x11e1a300
mov esi, dword [edi + 0xcc]
cmp eax, ebx
cmova ebx, eax
test esi, esi
je 0x410ac4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x410ab3
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], eax
imul eax, eax, 0xf4240
sub ecx, eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call dword [ebp - 0x38]
mov ecx, dword [edi + 0xc0]
lea esi, [edi + 0xc0]
mov edx, dword [edi + 0xb4]
xor al, al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x40], al
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x463bbc
test eax, eax
jne 0x410b55
test edx, edx
jne 0x410b55
test ecx, ecx
jne 0x410b55
mov eax, 0x10624dd3
imul dword [ebp - 0x14]
imul eax, dword [ebp - 0x18], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x410c4b
cmp dword [ebp - 0x18], 0
jne 0x410b7b
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x410b75
cmp eax, 0x3e8
mov dword [ebp - 0x3c], 0x3e8
cmovl eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xa8]
lea esi, [ebp - 0x18]
push esi
push ecx
push edx
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, ebx
mov dword [ebp - 0x28], ebx
shr edx, 0x1f
call fcn.0040ee00
lea esi, [edi + 0xc0]
test ebx, ebx
jle 0x410c4b
push dword [edi + 0xa8]
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x410c4b
lea ecx, [edi + 0x30]
call fcn.004102a0
test al, al
jne 0x410c44
lea eax, [edi + 0x18]
push eax
call dword [ebp - 0x2c]
mov ebx, dword [edi + 0x14]
mov al, 1
mov byte [ebp - 0x21], al
mov byte [ebp - 0x40], al
mov byte [edi + 0xd0], al
lea eax, [edi + 0xd8]
lock inc dword [ebx + 0x18]
push eax
push 0
push 0
mov dword [eax + 0x1c], 1
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x410c41
lea eax, [ebx + 0x38]
push eax
call dword [ebp - 0x2c]
lea eax, [edi + 0xd8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x410c2a
mov dword [ecx + 0x14], eax
jmp 0x410c2d
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov ecx, 1
lea eax, [ebx + 0x34]
xchg dword [eax], ecx
lea eax, [ebx + 0x38]
push eax
call dword [ebp - 0x38]
mov ebx, dword [ebp - 0x28]
dec ebx
cmp byte [ebp - 0x21], 0
jne 0x410c5a
lea eax, [edi + 0x18]
push eax
call dword [ebp - 0x2c]
mov al, 1
mov byte [ebp - 0x21], al
mov byte [ebp - 0x40], al
test ebx, ebx
jle 0x410ca9
mov ebx, dword [ebp - 0x34]
lea eax, [edi + 0x8c]
push ebx
push eax
mov ecx, esi
call fcn.0040ed00
push ebx
lea eax, [edi + 0x8c]
push eax
lea ecx, [edi + 0xb4]
call fcn.0040ed00
lea ebx, [edi + 0x70]
mov esi, 2
mov edi, dword [ebp - 0x48]
nop
push dword [ebp - 0x34]
mov ecx, edi
push ebx
call fcn.0040ed00
sub ebx, 0x1c
sub edi, 0xc
sub esi, 1
jns 0x410c90
mov edi, dword [ebp - 0x30]
mov esi, dword [edi + 0xcc]
test esi, esi
je 0x410cc5
mov edi, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x410cb6
cmp byte [ebp - 0x21], 0
je 0x410cd3
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x4c]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8