Function at 0x479b2d
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 0x479d89
lea eax, [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x479b77
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 0x479d8b
or edx, 0xffffffff
test esi, esi
js 0x479d51
mov eax, dword [edi + 4]
test eax, eax
je 0x479ba2
mov eax, dword [eax + 0x104]
test eax, eax
je 0x479ba2
push dword [ebp + 8]
push ebx
push edi
call eax
add esp, 0xc
jmp 0x479d21
movzx eax, byte [edi + 0x4c]
dec eax
sub eax, 1
je 0x479d12
sub eax, 1
je 0x479d33
sub eax, 1
je 0x479cc2
sub eax, 1
je 0x479c94
sub eax, 1
je 0x479c6e
sub eax, 1
je 0x479c36
sub eax, 1
jne 0x479d26
cmp dword [edi + 0xc], eax
je 0x479d26
xor esi, esi
test ebx, ebx
je 0x479cbb
mov ecx, dword [edi + 0x18]
call fcn.00473297
mov edx, ebx
push dword [ebp + 8]
cmp eax, 0x357
jne 0x479c22
call fcn.00473266
or edx, 0xffffffff
pop ecx
cmp eax, 1
je 0x479d26
mov esi, edx
jmp 0x479d26
call fcn.004733af
pop ecx
push 0xffffffffffffffff
cmp eax, 1
pop edx
cmovne esi, edx
jmp 0x479d26
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.00479a0b
mov ecx, eax
add esp, 0x10
or edx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov esi, ecx
test ecx, ecx
jle 0x479d26
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x479d26
cmp dword [edi + 0x18], 0
je 0x479c8a
push dword [edi + 0x18]
push dword [ebp + 8]
push 1
push ebx
call fcn.004dbb8a
add esp, 0x10
jmp 0x479d21
mov esi, 0xffffff52
jmp 0x479d26
test ebx, ebx
je 0x479cbb
push dword [ebp + 8]
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00479eb6
mov esi, eax
pop ecx
test esi, esi
jle 0x479d23
push esi
push ebx
push dword [ebp - 0x14]
call fcn.004cc920
add esp, 0xc
jmp 0x479d23
mov esi, 0xffffff53
jmp 0x479d26
mov ecx, dword [edi]
test ecx, ecx
je 0x479d0e
test ebx, ebx
je 0x479d0e
mov esi, dword [ebp + 8]
test esi, esi
jne 0x479cd6
inc esi
jmp 0x479d26
mov edx, dword [edi + 0x30]
push ecx
add edx, esi
call fcn.0047b346
pop ecx
test eax, eax
jne 0x479cea
xor esi, esi
jmp 0x479d23
mov eax, dword [edi]
push esi
push ebx
mov eax, dword [eax]
add eax, dword [edi + 0x30]
push eax
call fcn.004cc920
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 0x479d23
xor esi, esi
jmp 0x479d26
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 0x479b7a
jmp 0x479d51
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x44], 0
je 0x479d40
mov esi, edx
jmp 0x479d51
push ecx
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00479ad9
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x479d70
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 0x479d7e
mov ecx, eax
call fcn.004993df
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x479d89
test esi, esi
jg 0x479d8b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret