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

Disassembly:
lea eax, [esp + 0x28]
push eax
push edx
push edx
lea eax, [esp + 0x3c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x5fda8576
jmp 0x5fdb821f
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.5fda82c5
mov edi, eax
test edi, edi
je 0x5fda8610
jmp 0x5fdb8315
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5fde94a8]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esi + 0xa0]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fda84c6
test byte [ecx + 0x1c], 0x80
jne 0x5fdb81f9
test ebx, ebx
je 0x5fdb834b
cmp ebx, 0xffffffff
je 0x5fdb834b
mov edi, dword [esi + 0x1a0]
xor edx, edx
mov ecx, 0x3e8
mov dword [esp + 0x34], ebx
mov eax, edi
mov dword [esp + 0x30], 1
div ecx
imul ecx, edx, 0x3e8
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x5fda8635
movzx eax, word [esi + 0x1cc]
xor edx, edx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xd0], edx
je 0x5fda0bba
mov eax, dword [esi + 0xcc]
push edx
push edx
mov edx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
lea ecx, [eax + 0xd4]
mov dword [eax + 0x1a0], edi
mov dword [esp + 0x1c], ecx
xor ecx, ecx
inc ecx
mov dword [eax + 0x19c], ecx
push dword [esi + 0x1a0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0xcc]
call fcn.5fd8c675
mov edi, eax
test edi, edi
jne 0x5fdb82a3
mov eax, dword [esp + 0x20]
lea edi, [esi + 0xc4]
and dword [esp + 0x18], 0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edi], eax
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fda85a7
test dword [eax + 0x1c], 0x400
jne 0x5fdb82e4
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 1
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x5fda8776
xor edi, edi
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0xc]
je 0x5fda85eb
mov ecx, dword [ebx + 0xcc]
mov edx, edi
call fcn.5fd8ca8a
and dword [esp + 0x10], 0
mov edi, eax
cmp edi, 0x3e5
jne 0x5fda0bda
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fda8610
test dword [eax + 0x1c], 0x400
jne 0x5fdb82fd
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x5fdb82d0
mov eax, edi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 4
push 2
lea ecx, [esi + 0x1ce]
pop eax
mov dword [esp + 0x20], ecx
mov word [esi + 0x1cc], ax
mov dword [esi + 0x1c4], ecx
jmp 0x5fda851b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x5fda85cc
push dword [esi + 0x1a0]
movzx eax, word [esi + 0x1cc]
push eax
push dword [esi + 0x18c]
push ebx
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fdcdc65
jmp 0x5fda84c6
jns 0x5fdb825b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fdb8254
test dword [ecx + 0x1c], 0x400
je 0x5fdb8254
push esi
push dword [ecx + 0x14]
mov edx, 0x5fd8bc80
push dword [ecx + 0x10]
push 0x73
pop ecx
call fcn.5fdc7d09
mov eax, esi
jmp 0x5fda861e
mov edi, 0x5b4
mov ecx, esi
push 1
mov edx, edi
call fcn.5fd8f3ab
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fda861c
test dword [ecx + 0x1c], 0x400
je 0x5fda861c
push esi
push dword [ecx + 0x14]
mov edx, 0x5fd8bc80
push dword [ecx + 0x10]
push 0x74
pop ecx
call fcn.5fdc7d09
jmp 0x5fda861c
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fdb82cc
test dword [eax + 0x1c], 0x400
je 0x5fdb82cc
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x75
pop ecx
call fcn.5fdc7d09
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xcc]
mov edx, edi
call fcn.5fd8ca8a
mov edi, eax
jmp 0x5fda861c
push esi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x76
pop ecx
call fcn.5fdc7d09
jmp 0x5fda85a7
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x77
pop ecx
call fcn.5fdc44b5
jmp 0x5fda8610
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fda8610
test dword [eax + 0x1c], 0x400
je 0x5fda8610
push edi
push dword [eax + 0x14]
mov edx, 0x5fd8bc80
push dword [eax + 0x10]
push 0x78
pop ecx
call fcn.5fdc7d09
jmp 0x5fda8610
push 0x57
pop eax
jmp 0x5fda861e