Function at 0x43f860
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
lea edi, [ebp - 0x264]
mov ecx, 0x99
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
cmp dword [0x49b5ac], 0
jne 0x43f8a0
jmp 0x43fcc0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x224], ecx
cmp dword [ebp - 0x224], 0
je 0x43f8d4
cmp dword [ebp - 0x224], 1
je 0x43fa1c
cmp dword [ebp - 0x224], 2
je 0x43fc89
jmp 0x43fcc0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
jmp 0x43f8f9
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x20c]
jae 0x43f920
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + ecx*4 - 0x208]
cmp eax, dword [edx + 8]
jne 0x43f91e
jmp 0x43f920
jmp 0x43f8ea
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x20c]
jne 0x43f959
cmp dword [ebp - 0x20c], 0x40
jae 0x43f959
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp + edx*4 - 0x208], ecx
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
xor eax, eax
test eax, eax
jne 0x43f8de
mov esi, esp
lea ecx, [ebp - 0x214]
push ecx
push 0
lea edx, [ebp - 0x20c]
push edx
push 0
push 1
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43f9b8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x43f9b3
mov esi, esp
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
jmp 0x43fcc0
cmp dword [ebp - 4], 0
jle 0x43fa17
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43fa17
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x43fa17
mov esi, esp
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
jmp 0x43fcc0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
jne 0x43fb58
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x21c], 0
jmp 0x43fa4e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x20c]
jae 0x43fa75
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + edx*4 - 0x208]
cmp ecx, dword [eax + 8]
jne 0x43fa73
jmp 0x43fa75
jmp 0x43fa3f
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x20c]
jne 0x43faae
cmp dword [ebp - 0x20c], 0x40
jae 0x43faae
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp + eax*4 - 0x208], edx
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
xor ecx, ecx
test ecx, ecx
jne 0x43fa33
mov esi, esp
lea edx, [ebp - 0x214]
push edx
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 1
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43fb0d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x43fb08
mov esi, esp
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
jmp 0x43fcc0
cmp dword [ebp - 4], 0
jle 0x43fb58
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43fb58
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x43fb58
mov esi, esp
push 2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x220], 0
jmp 0x43fb7d
mov ecx, dword [ebp - 0x220]
add ecx, 1
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp - 0x108]
jae 0x43fba4
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + eax*4 - 0x104]
cmp edx, dword [ecx + 8]
jne 0x43fba2
jmp 0x43fba4
jmp 0x43fb6e
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x108]
jne 0x43fbdd
cmp dword [ebp - 0x108], 0x40
jae 0x43fbdd
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp + ecx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
test edx, edx
jne 0x43fb62
mov esi, esp
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 1
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43fc3c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x43fc37
mov esi, esp
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
jmp 0x43fcc0
cmp dword [ebp - 4], 0
jle 0x43fc87
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43fc87
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x43fc87
mov esi, esp
push 3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
jmp 0x43fcc0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x43fcad
mov esi, esp
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x18]
add esp, 8
cmp esi, esp
call fcn.004251b0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
pop edi
pop esi
pop ebx
add esp, 0x264
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret