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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xc], ecx
and dword [ebp - 4], eax
xor esi, esi
and dword [ebp - 8], eax
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x479da4
lea eax, [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x479b92
push 1
push esi
push dword [ebp + 8]
push ebx
push 3
push edi
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x479da6
or edx, 0xffffffff
test esi, esi
js 0x479d6c
mov eax, dword [edi + 4]
test eax, eax
je 0x479bbd
mov eax, dword [eax + 0x104]
test eax, eax
je 0x479bbd
push dword [ebp + 8]
push ebx
push edi
call eax
add esp, 0xc
jmp 0x479d3c
movzx eax, byte [edi + 0x4c]
dec eax
sub eax, 1
je 0x479d2d
sub eax, 1
je 0x479d4e
sub eax, 1
je 0x479cdd
sub eax, 1
je 0x479caf
sub eax, 1
je 0x479c89
sub eax, 1
je 0x479c51
sub eax, 1
jne 0x479d41
cmp dword [edi + 0xc], eax
je 0x479d41
xor esi, esi
test ebx, ebx
je 0x479cd6
mov ecx, dword [edi + 0x18]
call fcn.004732b2
mov edx, ebx
push dword [ebp + 8]
cmp eax, 0x357
jne 0x479c3d
call fcn.00473281
or edx, 0xffffffff
pop ecx
cmp eax, 1
je 0x479d41
mov esi, edx
jmp 0x479d41
call fcn.004733ca
pop ecx
push 0xffffffffffffffff
cmp eax, 1
pop edx
cmovne esi, edx
jmp 0x479d41
push ecx
lea eax, [ebp - 8]
mov edx, ebx
push eax
lea eax, [ebp - 4]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00479a26
mov ecx, eax
add esp, 0x10
or edx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov esi, ecx
test ecx, ecx
jle 0x479d41
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x479d41
cmp dword [edi + 0x18], 0
je 0x479ca5
push dword [edi + 0x18]
push dword [ebp + 8]
push 1
push ebx
call fcn.004dbb9a
add esp, 0x10
jmp 0x479d3c
mov esi, 0xffffff52
jmp 0x479d41
test ebx, ebx
je 0x479cd6
push dword [ebp + 8]
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00479ed1
mov esi, eax
pop ecx
test esi, esi
jle 0x479d3e
push esi
push ebx
push dword [ebp - 0x14]
call fcn.004cc940
add esp, 0xc
jmp 0x479d3e
mov esi, 0xffffff53
jmp 0x479d41
mov ecx, dword [edi]
test ecx, ecx
je 0x479d29
test ebx, ebx
je 0x479d29
mov esi, dword [ebp + 8]
test esi, esi
jne 0x479cf1
inc esi
jmp 0x479d41
mov edx, dword [edi + 0x30]
push ecx
add edx, esi
call fcn.0047b361
pop ecx
test eax, eax
jne 0x479d05
xor esi, esi
jmp 0x479d3e
mov eax, dword [edi]
push esi
push ebx
mov eax, dword [eax]
add eax, dword [edi + 0x30]
push eax
call fcn.004cc940
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 8]
add dword [edi + 0x30], esi
mov dword [edi + 0x40], eax
jmp 0x479d3e
xor esi, esi
jmp 0x479d41
push 0
push dword [ebp + 8]
push ebx
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
or edx, 0xffffffff
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x479b95
jmp 0x479d6c
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x44], 0
je 0x479d5b
mov esi, edx
jmp 0x479d6c
push ecx
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00479af4
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x479d8b
push esi
push 0
push dword [ebp + 8]
push ebx
push 0x83
push dword [ebp - 0xc]
call eax
add esp, 0x18
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x479d99
mov ecx, eax
call fcn.004993fd
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x479da4
test esi, esi
jg 0x479da6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret