Function at 0x429000
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x328], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x429059
cmp dword [ebp + 0xc], 0xffffffff
jne 0x429059
cmp dword [ebp + 0x10], 0xffffffff
jne 0x429059
mov eax, dword [ebp + 0x14]
push eax
call fcn.00428fa0
add esp, 4
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
jmp 0x42961d
cmp dword [ebp + 0x14], 0
jle 0x429079
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x328], ecx
call fcn.0043bfc0
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x110], 0
cmp dword [ebp + 8], 0xffffffff
je 0x4291a6
xor edx, edx
test edx, edx
jne 0x4290a1
mov dword [ebp - 0x338], 0
jmp 0x4290c2
mov eax, dword [ebp - 0x338]
add eax, 1
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jae 0x4290e6
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x4290e4
jmp 0x4290e6
jmp 0x4290b3
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jne 0x42911c
cmp dword [ebp - 0x110], 0x40
jae 0x42911c
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp + 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 0x4290a7
mov dword [ebp - 0x33c], 0
jmp 0x42913d
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x318]
jae 0x429161
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + edx*4 - 0x314]
cmp eax, dword [ebp + 8]
jne 0x42915f
jmp 0x429161
jmp 0x42912e
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x318]
jne 0x429197
cmp dword [ebp - 0x318], 0x40
jae 0x429197
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x314], eax
mov ecx, dword [ebp - 0x318]
add ecx, 1
mov dword [ebp - 0x318], ecx
xor edx, edx
test edx, edx
jne 0x429122
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x4292c0
xor ecx, ecx
test ecx, ecx
jne 0x4291b0
mov dword [ebp - 0x340], 0
jmp 0x4291d1
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jae 0x4291f5
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + ecx*4 - 0x10c]
cmp edx, dword [ebp + 0xc]
jne 0x4291f3
jmp 0x4291f5
jmp 0x4291c2
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jne 0x42922b
cmp dword [ebp - 0x110], 0x40
jae 0x42922b
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
test ecx, ecx
jne 0x4291b6
mov dword [ebp - 0x344], 0
jmp 0x42924c
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x318]
jae 0x429270
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + ecx*4 - 0x314]
cmp edx, dword [ebp + 0xc]
jne 0x42926e
jmp 0x429270
jmp 0x42923d
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x318]
jne 0x4292a6
cmp dword [ebp - 0x318], 0x40
jae 0x4292a6
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx*4 - 0x314], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
xor ecx, ecx
test ecx, ecx
jne 0x429231
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x31c]
jbe 0x4292c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x214], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x4293e4
xor ecx, ecx
test ecx, ecx
jne 0x4292d4
mov dword [ebp - 0x348], 0
jmp 0x4292f5
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x214]
jae 0x429319
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + ecx*4 - 0x210]
cmp edx, dword [ebp + 0x10]
jne 0x429317
jmp 0x429319
jmp 0x4292e6
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x214]
jne 0x42934f
cmp dword [ebp - 0x214], 0x40
jae 0x42934f
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + 0x10]
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 0x4292da
mov dword [ebp - 0x34c], 0
jmp 0x429370
mov edx, dword [ebp - 0x34c]
add edx, 1
mov dword [ebp - 0x34c], edx
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x318]
jae 0x429394
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + ecx*4 - 0x314]
cmp edx, dword [ebp + 0x10]
jne 0x429392
jmp 0x429394
jmp 0x429361
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x318]
jne 0x4293ca
cmp dword [ebp - 0x318], 0x40
jae 0x4293ca
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx*4 - 0x314], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
xor ecx, ecx
test ecx, ecx
jne 0x429355
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x31c]
jbe 0x4293e4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
xor ecx, ecx
cmp dword [ebp + 0x14], 0
setl cl
dec ecx
lea edx, [ebp - 8]
and ecx, edx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
jle 0x429426
mov eax, dword [ebp - 0x328]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x328]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
jmp 0x42943a
cmp dword [ebp + 0x14], 0
jne 0x42943a
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x214]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x214]
and ecx, edx
push ecx
mov eax, dword [ebp - 0x110]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x110]
and eax, ecx
push eax
mov edx, dword [ebp - 0x31c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0xffffffff
je 0x42948c
jmp 0x429508
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x4294b8
cmp dword [0x49ad68], 0
jne 0x4294b6
cmp dword [ebp - 0x32c], 0x2714
je 0x4294b8
jmp 0x429508
cmp dword [ebp + 0x14], 0
jle 0x4294fb
mov eax, dword [ebp - 0x320]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
call fcn.0043bfc0
push edx
push eax
call fcn.0043c010
add esp, 0x10
mov edx, dword [ebp + 0x14]
sub edx, eax
mov dword [ebp - 0x328], edx
cmp dword [ebp - 0x328], 0
jg 0x4294fb
mov dword [ebp - 0x330], 0
jmp 0x429508
cmp dword [ebp - 0x330], 0xffffffff
je 0x4293f6
cmp dword [ebp - 0x330], 0
jge 0x429519
or eax, 0xffffffff
jmp 0x42961d
cmp dword [ebp - 0x330], 0
jne 0x429529
xor eax, eax
jmp 0x42961d
mov dword [ebp - 0x334], 0
cmp dword [ebp + 8], 0xffffffff
je 0x42957f
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42955c
mov edx, dword [ebp - 0x334]
or edx, 1
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42957f
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
cmp dword [ebp + 0xc], 0xffffffff
je 0x4295cb
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4295a8
mov edx, dword [ebp - 0x334]
or edx, 8
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4295cb
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
cmp dword [ebp + 0x10], 0xffffffff
je 0x429617
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4295f4
mov edx, dword [ebp - 0x334]
or edx, 2
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x429617
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x334]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret