Function at 0x538530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x100]
mov ecx, 0x40
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 + 8], 0
je 0x538587
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
mov ecx, eax
call fcn.004a69d1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x538587
mov eax, dword [ebp - 0x14]
jmp 0x538806
mov dword [ebp - 0x20], 0
cmp dword [0x663d08], 0
jne 0x5385aa
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x5385f1
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x64
jg 0x5385f1
mov eax, dword [ebp + 0xc]
push eax
push str.writing__d_to_socket
push str.NPT_BsdSocketOutputStream::Write
mov ecx, dword [0x663d1c]
add ecx, 0xf
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 0x53858e
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x2c], eax
cmp dword [0x663d08], 0
jne 0x53863d
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x538684
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x64
jg 0x538684
mov eax, dword [ebp - 0x2c]
push eax
push str.send_returned__d
push str.NPT_BsdSocketOutputStream::Write
mov ecx, dword [0x663d1c]
add ecx, 0x13
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 0x538621
cmp dword [ebp - 0x2c], 0
jg 0x5387c6
cmp dword [ebp + 0x10], 0
je 0x5386a1
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 0x5386be
mov eax, 0xffffb1cb
jmp 0x538806
cmp dword [ebp - 0x2c], 0
jne 0x53873a
cmp dword [0x663d08], 0
jne 0x5386e0
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x538727
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x12c
jg 0x538727
push str.connection_reset
push str.NPT_BsdSocketOutputStream::Write
mov eax, dword [0x663d1c]
add eax, 0x1a
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 0x5386c4
mov eax, 0xffffb050
jmp 0x538806
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 - 0x38], eax
cmp dword [0x663d08], 0
jne 0x538771
mov eax, dword [str.neptune.sockets.bsd]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x663d08], eax
cmp dword [0x663d08], 0
je 0x5387bd
mov ecx, dword [0x663d08]
call fcn.004a9082
cmp eax, 0x12c
jg 0x5387bd
mov eax, dword [ebp - 0x38]
push eax
push str.socket_result___d
push str.NPT_BsdSocketOutputStream::Write
mov ecx, dword [0x663d1c]
add ecx, 0x1e
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 0x538755
mov eax, dword [ebp - 0x38]
jmp 0x538806
cmp dword [ebp + 0x10], 0
je 0x5387d4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004a921c
add eax, 0x10
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x2c]
cdq
mov ecx, dword [ebp - 0x100]
add eax, dword [ecx]
mov ecx, dword [ecx + 4]
adc ecx, edx
mov edx, dword [ebp - 0x100]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x100
cmp ebp, esp
call fcn.004a7520
mov esp, ebp
pop ebp
ret 0xc