Function at 0x476950
Capabilities:
Get socket status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x1d4], 0
jne 0x476997
mov dword [ebp - 0x238], 0x19e
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x234], ecx
push 0x4aec94
lea edx, [ebp - 0x234]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x1d4]
push ecx
call fcn.0040ab80
add esp, 4
mov edx, dword [ebp - 0x25c]
mov dword [edx + 0x1d8], eax
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x1d8], 0
jne 0x4769ee
mov dword [ebp - 0x240], 0x19e
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x23c], ecx
push 0x4aec94
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x14c]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1d8]
push eax
call fcn.00409f00
add esp, 8
push 0
push 4
push 0x21
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x1d8]
push edx
call fcn.0040b020
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0xb4
mov dword [ebp - 0x118], 0
mov eax, 1
test eax, eax
je 0x476d53
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x120], 0
je 0x476b17
mov dword [ebp - 0x22c], 0
jmp 0x476aa3
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0x228]
jae 0x476ad0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp + eax*4 - 0x224]
cmp edx, dword [ecx + 0x14c]
jne 0x476ace
jmp 0x476ad0
jmp 0x476a94
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x228]
jne 0x476b0f
cmp dword [ebp - 0x228], 0x40
jae 0x476b0f
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x14c]
mov dword [ebp + ecx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x476a88
cmp dword [ebp - 0x114], 0
je 0x476bb3
mov dword [ebp - 0x230], 0
jmp 0x476b3f
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x110]
jae 0x476b6c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp + edx*4 - 0x10c]
cmp ecx, dword [eax + 0x14c]
jne 0x476b6a
jmp 0x476b6c
jmp 0x476b30
mov edx, dword [ebp - 0x230]
cmp edx, dword [ebp - 0x110]
jne 0x476bab
cmp dword [ebp - 0x110], 0x40
jae 0x476bab
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x14c]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x476b24
cmp dword [ebp - 0x120], 0
jne 0x476bc9
cmp dword [ebp - 0x114], 0
je 0x476c8f
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], 0
lea edx, [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x14c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x476c4e
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x248], 0x6d
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x244], ecx
push 0x4aec94
lea edx, [ebp - 0x244]
push edx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x476c8f
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x250], 0x192
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
push 0x4aec94
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1d8]
push eax
call fcn.0040b580
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1d8]
push eax
call fcn.0040b460
add esp, 8
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x476ce3
cmp dword [ebp - 0x260], 2
je 0x476d07
cmp dword [ebp - 0x260], 3
je 0x476cfb
jmp 0x476d13
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
jmp 0x476d53
mov dword [ebp - 0x120], 1
jmp 0x476d4e
mov dword [ebp - 0x114], 1
jmp 0x476d4e
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x258], 0x19e
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x254], ecx
push 0x4aec94
lea edx, [ebp - 0x254]
push edx
call sub.MSVCR90.dll__CxxThrowException
jmp 0x476a5a
mov esp, ebp
pop ebp
ret