Function at 0x43566f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x491094]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x334], esi
push edi
test ecx, ecx
je 0x4356bd
mov edx, dword [ebp + 0xc]
mov eax, ebx
test edx, edx
je 0x4356bd
cmp dword [ecx + eax*8], 0xffffffff
jne 0x4356d5
inc eax
cmp eax, edx
jb 0x4356b2
push esi
call fcn.00435bb4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449be1
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x4356f0
call fcn.0042de09
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
xor eax, eax
mov dword [ebp - 0x20c], ebx
test esi, esi
mov edi, esi
mov edx, eax
mov esi, eax
cmovle edi, eax
mov dword [ebp - 0x310], edx
or dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x320], edi
mov edi, ebx
mov dword [ebp - 0x108], edi
jmp 0x435726
mov ecx, dword [ebp - 0x314]
xor eax, eax
mov word [ecx + esi*8 + 6], ax
mov ecx, dword [ecx + esi*8]
mov eax, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x43581a
mov eax, dword [ebp - 0x314]
movzx eax, word [eax + esi*8 + 4]
mov dword [ebp - 0x318], eax
test al, 7
je 0x435817
mov eax, dword [ebp - 0x31c]
cmp ecx, eax
cmova eax, ecx
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x318]
test al, 1
je 0x4357a7
xor eax, eax
test edi, edi
je 0x435784
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x435784
inc eax
cmp eax, edi
jb 0x435776
cmp eax, edi
jne 0x4357a1
cmp edi, 0x40
jae 0x4357a1
mov dword [ebp + eax*4 - 0x104], ecx
mov edi, dword [ebp - 0x108]
inc edi
mov dword [ebp - 0x108], edi
mov eax, dword [ebp - 0x318]
test al, 4
je 0x4357e2
xor eax, eax
test ebx, ebx
je 0x4357bf
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x4357bf
inc eax
cmp eax, ebx
jb 0x4357b1
cmp eax, ebx
jne 0x4357dc
cmp ebx, 0x40
jae 0x4357dc
mov dword [ebp + eax*4 - 0x208], ecx
mov ebx, dword [ebp - 0x20c]
inc ebx
mov dword [ebp - 0x20c], ebx
mov eax, dword [ebp - 0x318]
test al, 2
je 0x435817
xor eax, eax
test edx, edx
je 0x4357fa
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x4357fa
inc eax
cmp eax, edx
jb 0x4357ec
cmp eax, edx
jne 0x435817
cmp edx, 0x40
jae 0x435817
mov dword [ebp + eax*4 - 0x30c], ecx
mov edx, dword [ebp - 0x310]
inc edx
mov dword [ebp - 0x310], edx
mov eax, dword [ebp + 0xc]
inc esi
cmp esi, eax
jb 0x435720
mov esi, dword [ebp - 0x334]
lea edi, [ebp - 0x330]
mov ebx, dword [ebp - 0x31c]
xor eax, eax
mov ecx, dword [ebp - 0x320]
test esi, esi
cmovs edi, eax
inc ebx
test esi, esi
jle 0x43585f
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x330], eax
imul eax, edx, 0x3e8
jmp 0x435869
jne 0x43586f
xor eax, eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], eax
push edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4358db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4358a2
cmp eax, 0x2714
jne 0x4358df
mov ecx, dword [ebp - 0x320]
test esi, esi
jle 0x43585f
push dword [ebp - 0x324]
push dword [ebp - 0x328]
call fcn.0042de09
push edx
push eax
call fcn.0042ddb3
mov ecx, esi
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x320], ecx
test ecx, ecx
jg 0x435843
jmp 0x4358df
test eax, eax
jns 0x4358e7
or eax, 0xffffffff
jmp 0x4356c4
jne 0x4358f0
xor eax, eax
jmp 0x4356c4
mov esi, dword [ebp - 0x314]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esi, 6
xor ecx, ecx
cmp dword [esi - 6], 0xffffffff
mov word [esi], cx
je 0x435959
lea eax, [ebp - 0x108]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435922
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435939
or word [esi], 4
lea eax, [ebp - 0x310]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435950
or word [esi], 2
mov eax, dword [ebp + 0xc]
cmp word [esi], bx
je 0x435959
inc edi
add esi, 8
sub eax, 1
mov dword [ebp + 0xc], eax
jne 0x435900
mov eax, edi
jmp 0x4356c4