Function at 0x479bbe
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 0x479e1a
lea eax, [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x479c08
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 0x479e1c
or edx, 0xffffffff
test esi, esi
js 0x479de2
mov eax, dword [edi + 4]
test eax, eax
je 0x479c33
mov eax, dword [eax + 0x104]
test eax, eax
je 0x479c33
push dword [ebp + 8]
push ebx
push edi
call eax
add esp, 0xc
jmp 0x479db2
movzx eax, byte [edi + 0x4c]
dec eax
sub eax, 1
je 0x479da3
sub eax, 1
je 0x479dc4
sub eax, 1
je 0x479d53
sub eax, 1
je 0x479d25
sub eax, 1
je 0x479cff
sub eax, 1
je 0x479cc7
sub eax, 1
jne 0x479db7
cmp dword [edi + 0xc], eax
je 0x479db7
xor esi, esi
test ebx, ebx
je 0x479d4c
mov ecx, dword [edi + 0x18]
call fcn.00473328
mov edx, ebx
push dword [ebp + 8]
cmp eax, 0x357
jne 0x479cb3
call fcn.004732f7
or edx, 0xffffffff
pop ecx
cmp eax, 1
je 0x479db7
mov esi, edx
jmp 0x479db7
call fcn.00473440
pop ecx
push 0xffffffffffffffff
cmp eax, 1
pop edx
cmovne esi, edx
jmp 0x479db7
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.00479a9c
mov ecx, eax
add esp, 0x10
or edx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov esi, ecx
test ecx, ecx
jle 0x479db7
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x479db7
cmp dword [edi + 0x18], 0
je 0x479d1b
push dword [edi + 0x18]
push dword [ebp + 8]
push 1
push ebx
call fcn.004dbc0a
add esp, 0x10
jmp 0x479db2
mov esi, 0xffffff52
jmp 0x479db7
test ebx, ebx
je 0x479d4c
push dword [ebp + 8]
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00479f47
mov esi, eax
pop ecx
test esi, esi
jle 0x479db4
push esi
push ebx
push dword [ebp - 0x14]
call fcn.004cc9b0
add esp, 0xc
jmp 0x479db4
mov esi, 0xffffff53
jmp 0x479db7
mov ecx, dword [edi]
test ecx, ecx
je 0x479d9f
test ebx, ebx
je 0x479d9f
mov esi, dword [ebp + 8]
test esi, esi
jne 0x479d67
inc esi
jmp 0x479db7
mov edx, dword [edi + 0x30]
push ecx
add edx, esi
call fcn.0047b3d7
pop ecx
test eax, eax
jne 0x479d7b
xor esi, esi
jmp 0x479db4
mov eax, dword [edi]
push esi
push ebx
mov eax, dword [eax]
add eax, dword [edi + 0x30]
push eax
call fcn.004cc9b0
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 0x479db4
xor esi, esi
jmp 0x479db7
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 0x479c0b
jmp 0x479de2
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x44], 0
je 0x479dd1
mov esi, edx
jmp 0x479de2
push ecx
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00479b6a
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x479e01
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 0x479e0f
mov ecx, eax
call fcn.0049946f
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x479e1a
test esi, esi
jg 0x479e1c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret