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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0xffffffff
mov dword [ebp - 0x120], eax
jne 0x4a56a8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
mov ebx, 6
xor edi, edi
mov eax, dword [esi + 0x34]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
lea edx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
push edx
inc eax
push eax
mov dword [ebp - 0x11c], 0x78
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4a583b
mov ecx, dword [esi + 0x34]
push 0
push ebx
lea eax, [ebp + edi - 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a572c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4a5738
push eax
mov dword [esi + 0x38], eax
push str.SRPClient::ReceivePacket:_Error_receiving_Header___d_
jmp 0x4a58ab
test eax, eax
je 0x4a584c
sub ebx, eax
add edi, eax
cmp edi, 6
jl 0x4a56b1
mov edx, dword [ebp - 0xa]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
lea ebx, [edi + 6]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
cmp ebx, dword [esi + 0x28]
jle 0x4a5787
cmp ebx, 0x500000
jge 0x4a5787
mov eax, dword [esi + 0x24]
push eax
call fcn.0055a04a
add ebx, 0x2800
push ebx
call fcn.00541cf1
add esp, 8
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
test edi, edi
js 0x4a58a5
cmp edi, dword [esi + 0x28]
jg 0x4a58a5
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dx, word [ebp - 8]
mov ebx, edi
xor edi, edi
mov word [eax + 4], dx
cmp dword [ebp - 0x114], edi
jle 0x4a5871
jmp 0x4a57c0
mov eax, dword [esi + 0x34]
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
lea edx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
push edx
inc eax
push eax
mov dword [ebp - 0x128], 0x78
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4a5894
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x34]
push 0
push ebx
lea ecx, [eax + edi + 6]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a585d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4a5865
push eax
mov dword [esi + 0x38], eax
push str.SRPClient::ReceivePacket:_Error_receiving_data___d_
jmp 0x4a58ab
push str.SRPClient::ReceivePacket:_Timeout_receiving_Header
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a58b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov dword [esi + 0x38], eax
push str.SRPClient::ReceivePacket:_No_received_bytes___d_
jmp 0x4a58ab
test eax, eax
je 0x4a584c
sub ebx, eax
add edi, eax
cmp edi, dword [ebp - 0x114]
jl 0x4a57c0
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x120]
pop edi
pop ebx
mov dword [ecx], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push str.SRPClient::ReceivePacket:_Timeout_receiving_Data
push 4
call fcn.005304d0
add esp, 8
jmp 0x4a58b5
push edi
push str.SRPClient::ReceivePacket:_Too_big__d
push 4
call fcn.005304d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor al, al
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4