Function at 0x434d50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x328], 1
mov dword [ebp - 0x330], 0
cmp dword [ebp + 8], 0
je 0x434dcd
mov dword [ebp - 0x32c], 0
jmp 0x434da5
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp + 0xc]
jae 0x434dcd
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
cmp dword [eax + edx*8], 0xffffffff
je 0x434dcb
mov dword [ebp - 0x328], 0
jmp 0x434dcd
jmp 0x434d96
cmp dword [ebp - 0x328], 0
je 0x434df3
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004346c0
add esp, 4
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
jmp 0x43538c
cmp dword [ebp + 0x10], 0
jle 0x434e13
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x330], edx
call fcn.004476c0
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x32c], 0
jmp 0x434e56
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp + 0xc]
jae 0x4350ce
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
mov word [eax + edx*8 + 6], 0
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx*8], 0xffffffff
jne 0x434e86
jmp 0x434e47
xor eax, eax
test eax, eax
jne 0x434e86
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
movsx eax, word [edx + ecx*8 + 4]
and eax, 7
test eax, eax
je 0x4350c9
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*8]
cmp eax, dword [ebp - 0x31c]
jbe 0x434ecb
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
movsx eax, word [edx + ecx*8 + 4]
and eax, 1
test eax, eax
je 0x434f75
mov dword [ebp - 0x33c], 0
jmp 0x434eff
mov ecx, dword [ebp - 0x33c]
add ecx, 1
mov dword [ebp - 0x33c], ecx
mov edx, dword [ebp - 0x33c]
cmp edx, dword [ebp - 0x110]
jae 0x434f2c
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x10c]
cmp eax, dword [edx + ecx*8]
jne 0x434f2a
jmp 0x434f2c
jmp 0x434ef0
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x110]
jne 0x434f6b
cmp dword [ebp - 0x110], 0x40
jae 0x434f6b
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
test edx, edx
jne 0x434ee4
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + eax*8 + 4]
and edx, 4
test edx, edx
je 0x43501f
mov dword [ebp - 0x340], 0
jmp 0x434fa9
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
cmp ecx, dword [ebp - 0x214]
jae 0x434fd6
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + edx*4 - 0x210]
cmp edx, dword [ecx + eax*8]
jne 0x434fd4
jmp 0x434fd6
jmp 0x434f9a
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x214]
jne 0x435015
cmp dword [ebp - 0x214], 0x40
jae 0x435015
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*8]
mov dword [ebp + ecx*4 - 0x210], edx
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
xor ecx, ecx
test ecx, ecx
jne 0x434f8e
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*8 + 4]
and ecx, 2
test ecx, ecx
je 0x4350c9
mov dword [ebp - 0x344], 0
jmp 0x435053
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x318]
jae 0x435080
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + ecx*4 - 0x314]
cmp ecx, dword [eax + edx*8]
jne 0x43507e
jmp 0x435080
jmp 0x435044
mov edx, dword [ebp - 0x344]
cmp edx, dword [ebp - 0x318]
jne 0x4350bf
cmp dword [ebp - 0x318], 0x40
jae 0x4350bf
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x314], ecx
mov edx, dword [ebp - 0x318]
add edx, 1
mov dword [ebp - 0x318], edx
xor eax, eax
test eax, eax
jne 0x435038
jmp 0x434e47
cmp dword [ebp - 0x110], 0
jne 0x435106
cmp dword [ebp - 0x214], 0
jne 0x435106
cmp dword [ebp - 0x318], 0
jne 0x435106
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004346c0
add esp, 4
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
jmp 0x43538c
xor edx, edx
cmp dword [ebp + 0x10], 0
setl dl
dec edx
lea eax, [ebp - 8]
and edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], 0
jle 0x435148
mov eax, dword [ebp - 0x330]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x330]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
jmp 0x43515c
cmp dword [ebp + 0x10], 0
jne 0x43515c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x318]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x318]
and eax, ecx
push eax
mov edx, dword [ebp - 0x214]
neg edx
sbb edx, edx
lea eax, [ebp - 0x214]
and edx, eax
push edx
mov ecx, dword [ebp - 0x110]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x110]
and ecx, edx
push ecx
mov eax, dword [ebp - 0x31c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x338], eax
cmp dword [ebp - 0x338], 0xffffffff
je 0x4351ba
jmp 0x435236
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
je 0x4351e6
cmp dword [0x4abd38], 0
jne 0x4351e4
cmp dword [ebp - 0x334], 0x2714
je 0x4351e6
jmp 0x435236
cmp dword [ebp + 0x10], 0
jle 0x435229
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp - 0x324]
push edx
call fcn.004476c0
push edx
push eax
call fcn.00447710
add esp, 0x10
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov dword [ebp - 0x330], ecx
cmp dword [ebp - 0x330], 0
jg 0x435229
mov dword [ebp - 0x338], 0
jmp 0x435236
cmp dword [ebp - 0x338], 0xffffffff
je 0x435118
cmp dword [ebp - 0x338], 0
jge 0x435247
or eax, 0xffffffff
jmp 0x43538c
cmp dword [ebp - 0x338], 0
jne 0x435257
xor eax, eax
jmp 0x43538c
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x32c], 0
jmp 0x43527c
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
cmp eax, dword [ebp + 0xc]
jae 0x435386
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], 0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0xffffffff
jne 0x4352ac
jmp 0x43526d
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4352e8
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 1
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435324
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 4
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x435360
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 2
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*8 + 6]
test ecx, ecx
je 0x435381
mov edx, dword [ebp - 0x338]
add edx, 1
mov dword [ebp - 0x338], edx
jmp 0x43526d
mov eax, dword [ebp - 0x338]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret