Function at 0x538030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
cmp dword [eax + 4], 0
je 0x538087
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
mov ecx, eax
call fcn.004a8a60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x538087
mov eax, dword [ebp - 0x14]
jmp 0x5382fd
cmp dword [0x663d08], 0
jne 0x5380a3
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x5380ea
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x64
jg 0x5380ea
mov eax, dword [ebp + 0xc]
push eax
push str.reading__d_from_socket
push str.NPT_BsdSocketInputStream::Read
mov ecx, dword [0x663d18]
add ecx, 8
push ecx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683_neptune_source_system_bsd_nptbsdsockets.cpp
push 0x64
mov edx, dword [0x663d08]
push edx
call fcn.004a5216
add esp, 0x1c
xor eax, eax
jne 0x538087
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x20], eax
cmp dword [0x663d08], 0
jne 0x538134
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x53817b
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x64
jg 0x53817b
mov eax, dword [ebp - 0x20]
push eax
push str.recv_returned__d
push str.NPT_BsdSocketInputStream::Read
mov ecx, dword [0x663d18]
add ecx, 0xc
push ecx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683_neptune_source_system_bsd_nptbsdsockets.cpp
push 0x64
mov edx, dword [0x663d08]
push edx
call fcn.004a5216
add esp, 0x1c
xor eax, eax
jne 0x538118
cmp dword [ebp - 0x20], 0
jg 0x5382bd
cmp dword [ebp + 0x10], 0
je 0x538198
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
movzx eax, byte [eax + 0x18]
test eax, eax
je 0x5381b5
mov eax, 0xffffb1cb
jmp 0x5382fd
cmp dword [ebp - 0x20], 0
jne 0x538231
cmp dword [0x663d08], 0
jne 0x5381d7
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x53821e
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x12c
jg 0x53821e
push str.socket_end_of_stream
push str.NPT_BsdSocketInputStream::Read
mov eax, dword [0x663d18]
add eax, 0x13
push eax
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683_neptune_source_system_bsd_nptbsdsockets.cpp
push 0x12c
mov ecx, dword [0x663d08]
push ecx
call fcn.004a5216
add esp, 0x18
xor eax, eax
jne 0x5381bb
mov eax, 0xffffb0b2
jmp 0x5382fd
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a7520
push eax
call fcn.00537ee0
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [0x663d08], 0
jne 0x538268
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x5382b4
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x12c
jg 0x5382b4
mov eax, dword [ebp - 0x2c]
push eax
push str.socket_result___d
push str.NPT_BsdSocketInputStream::Read
mov ecx, dword [0x663d18]
add ecx, 0x17
push ecx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683_neptune_source_system_bsd_nptbsdsockets.cpp
push 0x12c
mov edx, dword [0x663d08]
push edx
call fcn.004a5216
add esp, 0x1c
xor eax, eax
jne 0x53824c
mov eax, dword [ebp - 0x2c]
jmp 0x5382fd
cmp dword [ebp + 0x10], 0
je 0x5382cb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
add eax, 0x10
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x20]
cdq
mov ecx, dword [ebp - 0xf4]
add eax, dword [ecx]
mov ecx, dword [ecx + 4]
adc ecx, edx
mov edx, dword [ebp - 0xf4]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xf4
cmp ebp, esp
call fcn.004a7520
mov esp, ebp
pop ebp
ret 0xc