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

Disassembly:
sub esp, 0x114
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x11c]
mov eax, dword [esi + 0x170]
test eax, eax
je 0x4629b8
push ecx
push eax
mov ecx, esi
call fcn.004633b1
jmp 0x462b98
mov eax, dword [ecx + 8]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x11c], ebx
je 0x462bb0
mov eax, dword [esi + 0x120]
lea ecx, [esp + 0xc]
push edi
push ecx
push ebx
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
inc eax
mov dword [esp + 0x28], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x462a4a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x462bd0
mov eax, dword [esi + 0x120]
cmp dword [esp + ebx*4 + 0x1c], eax
je 0x462a22
inc ebx
cmp ebx, ecx
jb 0x462a12
jmp 0x462bd0
lea eax, [ecx - 1]
cmp ebx, eax
jae 0x462bcb
lea edx, [esp + 0x20]
mov eax, dword [edx + ebx*4]
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp ebx, eax
jae 0x462bcb
jmp 0x462a31
test edi, edi
jne 0x462aa6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x462a8c
mov eax, dword [esi + 0x120]
cmp dword [esp + ebx*4 + 0x1c], eax
je 0x462a69
inc ebx
cmp ebx, ecx
jb 0x462a5c
jmp 0x462a8c
lea eax, [ecx - 1]
cmp ebx, eax
jae 0x462a87
lea edx, [esp + 0x20]
mov eax, dword [edx + ebx*4]
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x462a74
dec ecx
mov dword [esp + 0x18], ecx
push 0x192
lea ecx, [esp + 0x10]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x462be2
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x120]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x462b2f
push ebx
push 0x2800
push dword [esi + 0x11c]
push dword [esi + 0x120]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x462b2f
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x462b18
mov eax, dword [esi + 0x120]
cmp dword [esp + ebx*4 + 0x1c], eax
je 0x462af5
inc ebx
cmp ebx, ecx
jb 0x462ae8
jmp 0x462b18
lea eax, [ecx - 1]
cmp ebx, eax
jae 0x462b13
lea edx, [esp + 0x20]
mov eax, dword [edx + ebx*4]
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x462b00
dec ecx
mov dword [esp + 0x18], ecx
push 0x67
lea ecx, [esp + 0x10]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x462be2
mov edx, dword [esp + 0x18]
mov ecx, ebx
test edx, edx
je 0x462b72
mov eax, dword [esi + 0x120]
cmp dword [esp + ecx*4 + 0x1c], eax
je 0x462b4c
inc ecx
cmp ecx, edx
jb 0x462b3f
jmp 0x462b72
lea eax, [edx - 1]
cmp ecx, eax
jae 0x462b6d
push ebp
lea ebp, [esp + 0x24]
mov eax, dword [ebp + ecx*4]
mov dword [esp + ecx*4 + 0x20], eax
inc ecx
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x462b58
pop ebp
dec edx
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x11c]
mov byte [edi + eax], bl
test edi, edi
jne 0x462b96
push 0x190
lea ecx, [esp + 0x10]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x462be2
pop edi
pop ebx
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
call fcn.0046f32e
add esp, 0x114
ret 4
push 0x19a
lea ecx, [esp + 0xc]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
dec ecx
mov dword [esp + 0x18], ecx
push 0x6d
lea ecx, [esp + 0x10]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3