Function at 0x435090
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x601860
xor esi, esi
call fcn.004291c0
mov ebx, dword [ebp + 8]
mov eax, dword [0x60188c]
push 0x601860
lea ecx, [ebx*4]
mov edi, dword [ecx + eax]
mov dword [ebp - 8], ecx
call fcn.004291d0
mov eax, dword [edi + 0x58]
add esp, 8
test al, 0x28
je 0x435315
test eax, 0x10000
jne 0x435324
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x43523e
test al, 8
je 0x435128
test al, al
js 0x43533a
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
call fcn.005494b7
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 4]
push ecx
call fcn.0053b370
add esp, 4
mov esi, eax
jmp 0x4352fb
test al, 1
je 0x4351f9
cmp dword [edi + 0x3c], esi
je 0x435190
cmp dword [edi + 0x2c], esi
jne 0x435190
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
mov esi, dword [ebp - 8]
push 0x601860
mov esi, dword [esi + eax]
call fcn.004291d0
add esp, 8
cmp dword [esi + 0x2c], 0
jne 0x435190
cmp dword [0x60184c], 0
jne 0x435190
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call fcn.004373d0
add esp, 8
test eax, eax
jne 0x435190
cmp dword [esi + 0x2c], eax
jne 0x435190
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x2c], 1
mov dword [esi + 0x28], eax
push 0
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
call dword [sym.imp.WS2_32.dll_send]
push eax
call fcn.0053b370
mov esi, eax
add esp, 4
test esi, esi
jns 0x4352fd
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4351c9
call fcn.005414b2
cmp dword [eax], 0x2747
jne 0x4352fb
cmp ebx, 0x400
jbe 0x4352fb
shr ebx, 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00435090
add esp, 0xc
mov esi, eax
jmp 0x4352fb
test al, 4
je 0x435346
test al, al
js 0x435217
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
jmp 0x435109
test eax, 0x4000000
je 0x435247
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x435235
call fcn.005414b2
mov dword [eax], 0x20
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x70]
call fcn.00448280
add esp, 4
mov esi, ebx
cmp eax, ebx
cmovb esi, eax
test esi, esi
jne 0x435286
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x435274
call fcn.005414b2
or esi, 0xffffffff
mov dword [eax], 0x2733
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push dword [edi + 0x70]
call fcn.00448450
push dword [edi + 0x70]
call fcn.00448280
mov ecx, dword [edi + 0x58]
add esp, 0x10
mov edx, eax
neg edx
sbb edx, edx
and ecx, 0xffff7fff
and edx, 0x8000
or edx, ecx
mov dword [edi + 0x58], edx
test eax, eax
je 0x4352c4
push edi
call fcn.0043b260
add esp, 4
cmp esi, ebx
je 0x4352e5
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4352df
call fcn.005414b2
mov dword [eax], 0x2733
push edi
call fcn.00437760
add esp, 4
test dword [edi + 0x58], 0x4000000
jne 0x43523b
test esi, esi
jle 0x43523e
mov eax, esi
cdq
add dword [edi + 0x18], eax
mov eax, esi
adc dword [edi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.write_to_non_streamfile_socket
push 0x360000
call fcn.00424760
push dword [edi + 0x114]
push ebx
push str.sock_write_fd_d_with_ASSERT_CLOSE:__x
push 0x360000
call fcn.00424760
push str.vsock_type_file_does_not_support_non_blocking_mode
push 0x36
call fcn.004205c0
push eax
push str.invalid_fd_type_0x_x
push 0x360000
call fcn.00424760
int3