Function at 0x420c70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4422bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
mov dword [ebp - 0x358], ecx
mov eax, dword [ebp - 0x358]
cmp dword [eax + 0x34], 0
je 0x420cbc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x358]
call dword [eax + 0x58]
mov al, 1
jmp 0x4211d2
mov dword [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x358]
cmp dword [edx + 0x38], 0
jg 0x420cfc
mov eax, dword [ebp - 0x358]
cmp dword [eax + 0x3c], 0
jle 0x420d08
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x32c], 0
jmp 0x420d41
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
cmp eax, dword [ebp - 0x110]
jae 0x420d6b
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ebp - 0x358]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 4]
jne 0x420d69
jmp 0x420d6b
jmp 0x420d32
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp - 0x110]
jne 0x420da7
cmp dword [ebp - 0x110], 0x40
jae 0x420da7
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax + 4]
mov dword [ebp + edx*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
test eax, eax
jne 0x420d26
mov dword [ebp - 0x330], 0
jmp 0x420dcc
mov ecx, dword [ebp - 0x330]
add ecx, 1
mov dword [ebp - 0x330], ecx
mov edx, dword [ebp - 0x330]
cmp edx, dword [ebp - 0x328]
jae 0x420df6
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x358]
mov edx, dword [ebp + eax*4 - 0x324]
cmp edx, dword [ecx + 4]
jne 0x420df4
jmp 0x420df6
jmp 0x420dbd
mov eax, dword [ebp - 0x330]
cmp eax, dword [ebp - 0x328]
jne 0x420e32
cmp dword [ebp - 0x328], 0x40
jae 0x420e32
mov ecx, dword [ebp - 0x330]
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 4]
mov dword [ebp + ecx*4 - 0x324], eax
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
xor edx, edx
test edx, edx
jne 0x420db1
mov dword [ebp - 0x334], 0
jmp 0x420e57
mov eax, dword [ebp - 0x334]
add eax, 1
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
cmp ecx, dword [ebp - 0x224]
jae 0x420e81
mov edx, dword [ebp - 0x334]
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp + edx*4 - 0x220]
cmp ecx, dword [eax + 4]
jne 0x420e7f
jmp 0x420e81
jmp 0x420e48
mov edx, dword [ebp - 0x334]
cmp edx, dword [ebp - 0x224]
jne 0x420ebd
cmp dword [ebp - 0x224], 0x40
jae 0x420ebd
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x220], edx
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
xor ecx, ecx
test ecx, ecx
jne 0x420e3c
mov dword [ebp - 0x120], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 4
ja case.default.0x420eef
mov ecx, dword [ebp - 0x35c]
jmp dword [ecx*4 + 0x4211e2]
mov edx, dword [ebp - 0x11c]
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx + 4]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x120], eax
jmp case.default.0x420eef
mov eax, dword [ebp - 0x11c]
push eax
push 0
lea ecx, [ebp - 0x328]
push ecx
push 0
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x120], eax
jmp case.default.0x420eef
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
push 0
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x120], eax
jmp case.default.0x420eef
mov edx, dword [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x120], eax
jmp case.default.0x420eef
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jge 0x421032
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x338], esp
lea edx, [ebp - 0x33c]
push edx
push str.SWBaseSocket::waitIO___error:
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x360], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x358]
call dword [edx + 0x54]
xor al, al
jmp 0x4211d2
cmp dword [ebp - 0x120], 0
jne 0x4210ac
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x340], esp
lea eax, [ebp - 0x344]
push eax
push str.SWBaseSocket::waitIO___timeout
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x348], esp
push 8
call fcn.0041f91f
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x358]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x5c]
xor al, al
jmp 0x4211d2
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx + 4]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4210eb
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x358]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x358]
call dword [edx + 0x58]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov al, 1
jmp 0x4211d2
lea ecx, [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 4]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42112a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x358]
call dword [eax + 0x58]
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov al, 1
jmp 0x4211d2
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax + 4]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421166
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x358]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x358]
call dword [edx + 0x58]
mov eax, dword [ebp + 8]
mov dword [eax], 2
mov al, 1
jmp 0x4211d2
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x34c], esp
lea edx, [ebp - 0x350]
push edx
push str.SWBaseSocket::waitIO___failed_on_select__
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x374], eax
mov dword [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x354], esp
push 1
call fcn.0041f91f
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x358]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x5c]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8