Function at 0x1000bdea
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10022382
call fcn.10021c80
push ecx
mov eax, 0x2468
call fcn.10021d20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x245c], ecx
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x245c]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 0x245c]
cmp dword [eax + 0x28], 0x40
jae 0x1000be53
mov eax, dword [ebp - 0x245c]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x245c]
mov edx, dword [ebp - 0x245c]
mov edx, dword [edx]
mov dword [ecx + eax*4 + 0x2c], edx
mov eax, dword [ebp - 0x245c]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [ebp - 0x245c]
mov dword [ecx + 0x28], eax
xor eax, eax
test eax, eax
jne 0x1000be19
cmp dword [ebp + 8], 0
je 0x1000be6e
mov eax, dword [ebp - 0x245c]
and dword [eax + 0x12c], 0
jmp 0x1000be80
mov eax, dword [ebp - 0x245c]
mov ecx, dword [0x10032210]
mov dword [eax + 0x12c], ecx
mov eax, dword [ebp - 0x245c]
add eax, 0x12c
push eax
push 0
push 0
mov eax, dword [ebp - 0x245c]
add eax, 0x28
push eax
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x1000befa
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x2734
jne 0x1000becb
cmp dword [ebp + 8], 0
je 0x1000becb
mov eax, 0xfad
jmp 0x1000c23a
push dword [ebp - 0x34]
call fcn.1000b298
pop ecx
push eax
push dword [ebp - 0x34]
push str.connection::get_buffer___unexpected_error_from_select:__d___s_
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
call fcn.1000aa98
pop ecx
cmp dword [ebp - 0x24], 0
jne 0x1000bf10
cmp dword [ebp + 8], 0
je 0x1000bf10
mov eax, 0xfad
jmp 0x1000c23a
push 0
mov eax, dword [ebp - 0x245c]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x245c]
push dword [eax + 4]
mov eax, dword [ebp - 0x245c]
push dword [eax]
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1000bf44
mov eax, 0xfb0
jmp 0x1000c23a
cmp dword [ebp - 0x20], 0xffffffff
jne 0x1000bfe2
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x2460], eax
cmp dword [ebp - 0x2460], 0x2733
je 0x1000bfa1
cmp dword [ebp - 0x2460], 0x2741
jle 0x1000bfab
cmp dword [ebp - 0x2460], 0x2746
jle 0x1000bf97
cmp dword [ebp - 0x2460], 0x2749
je 0x1000bf97
jmp 0x1000bfab
mov eax, 0xfb0
jmp 0x1000c23a
mov eax, 0xfad
jmp 0x1000c23a
push dword [ebp - 0x438]
call fcn.1000b298
pop ecx
push eax
push dword [ebp - 0x438]
push str.connection::get_buffer___unexpected_error:__d___s_
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x434]
push eax
call fcn.1000aa98
pop ecx
jmp 0x1000bffb
push str.superDebug:_Received__lu_bytes:_n
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x245c]
push dword [eax + 4]
call fcn.1000b96d
add esp, 0xc
cmp dword [ebp - 0x20], 0xffffffff
jne 0x1000c005
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x245c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x245c]
and dword [eax + 0xc], 0
lea ecx, [ebp - 0x30]
call fcn.100024c5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100024c5
mov byte [ebp - 4], 1
cmp dword [0x10035458], 0
je 0x1000c205
mov byte [ebp - 4], 2
mov ecx, dword [0x10035458]
call fcn.1000c729
mov dword [ebp - 0x2464], eax
cmp dword [ebp - 0x2464], 0
je 0x1000c187
lea ecx, [ebp - 0x1c]
call fcn.100024e5
mov eax, dword [ebp - 0x245c]
push dword [eax + 0x14]
mov eax, dword [ebp - 0x245c]
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.10005b75
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2450]
push eax
mov ecx, dword [0x10035458]
call fcn.1000ecc8
mov dword [ebp - 0x2468], eax
mov eax, dword [ebp - 0x2468]
mov dword [ebp - 0x246c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x246c]
lea ecx, [ebp - 0x30]
call fcn.1000255c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2450]
call fcn.100024a2
lea ecx, [ebp - 0x30]
call fcn.1000273c
mov dword [ebp - 0x2470], eax
mov eax, dword [ebp - 0x2470]
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x30]
call fcn.1000272e
mov dword [ebp - 0x2474], eax
mov eax, dword [ebp - 0x2474]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x245c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x440]
and byte [eax + ecx], 0
cmp dword [ebp - 0x440], 0
je 0x1000c154
mov eax, dword [ebp - 0x440]
dec eax
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x245c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
movzx ecx, word [edx + ecx*2]
and ecx, 0xff
mov edx, dword [ebp - 0x440]
mov byte [eax + edx], cl
jmp 0x1000c114
lea ecx, [ebp - 0x30]
call fcn.1000273c
mov dword [ebp - 0x2478], eax
mov eax, dword [ebp - 0x245c]
mov ecx, dword [ebp - 0x2478]
mov dword [eax + 0x14], ecx
movzx eax, word [0x10043616]
test eax, eax
je 0x1000c187
push str.superDebug:_Decrypted_n
call fcn.10005df8
pop ecx
jmp 0x1000c1fe
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10002525
lea ecx, [ebp - 0x30]
call fcn.10002525
and dword [ebp - 0x2458], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100024a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100024a2
mov eax, dword [ebp - 0x2458]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4