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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659030
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x120], esi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x98]
push eax
push str.conn.__d_dowload_completed_n
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0061af5b
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0xa0]
mov eax, dword [eax + 0x58]
cmp eax, edi
je 0x568ed5
cmp dword [eax + 0x14], edi
jne 0x568ed5
mov edi, dword [eax]
test edi, edi
je 0x568ed3
cmp dword [edi + 0x7c], 0
jl 0x568cf9
jg 0x568ce9
cmp dword [edi + 0x78], 0x40
jbe 0x568cf9
cmp byte [edi + 0xd0], 0
jne 0x568cf9
xor edx, edx
lea ebx, [edx + 1]
jmp 0x568d00
mov ebx, 1
mov edx, ebx
mov eax, dword [esi + 0x70]
add eax, ebx
mov ecx, dword [esi + 0x74]
adc ecx, 0
cmp eax, dword [edi + 0x60]
jne 0x568edc
cmp ecx, dword [edi + 0x64]
jne 0x568edc
test edx, edx
je 0x568edc
mov ecx, dword [esi + 0x98]
push ecx
mov edx, dword [edi + 0x98]
push edx
push str.The_file_chunk_of_connection__d_is_reassigned_to_connection__d._n
lea eax, [ebp - 0x11c]
push eax
call fcn.0061af5b
add esp, 0x10
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, esi
call fcn.0055b6c0
cmp byte [edi + 0xd0], 0
jne 0x568d76
mov eax, dword [esi + 0x3204]
mov edx, dword [edi + 0x78]
sub dword [eax + 0x1c0], edx
mov ecx, dword [edi + 0x7c]
sbb dword [eax + 0x1c4], ecx
mov byte [edi + 0xd0], 0
mov edx, dword [str.QUIT_r_n]
mov dword [ebp - 0x1c], edx
mov ax, word [0x6a5860]
mov word [ebp - 0x18], ax
mov cl, byte [0x6a5862]
mov byte [ebp - 0x16], cl
mov edx, dword [edi + 0x98]
push edx
push str.Sendig_QUIT_for_connection__d..._n
lea eax, [ebp - 0x11c]
push eax
call fcn.0061af5b
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, esi
call fcn.0055b6c0
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568dc8
sub eax, edx
push str.send___QUIT
push 0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [edi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x568dfe
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 0x20]
call eax
mov dword [edi + 0x9c], 7
xor ebx, ebx
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + 0x58]
mov eax, dword [edx + 0x5c]
test eax, eax
je 0x568e90
mov ebx, dword [eax]
mov eax, dword [ebx + 0x98]
push eax
push str.Sendig_QUIT_for_connection__d..._n
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0061af5b
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
mov ecx, esi
call fcn.0055b6c0
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
jmp 0x568e50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568e50
sub eax, edx
push str.send___QUIT
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebx + 0x31f4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x568e86
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx + 0x20]
call eax
mov dword [ebx + 0x9c], 7
mov ecx, dword [esi + 0xa0]
push ecx
mov ecx, dword [esi + 0x3204]
add ecx, 0x28
call fcn.00554e40
xor eax, eax
mov dword [edi + 0xa0], eax
cmp ebx, eax
je 0x568eb7
mov dword [ebx + 0xa0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ebx, 1
jmp 0x568ede
xor edi, edi
mov ecx, esi
call fcn.00567130
test eax, eax
je 0x568f36
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esi + 0x3204]
call fcn.005714a0
test eax, eax
je 0x568f2a
mov dword [esi + 0x94], ebx
mov dword [esi + 8], ebx
lea ecx, [esi + 0x31e8]
call fcn.005a1e50
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x31fc], ebx
mov ecx, esi
call fcn.00566760
jmp 0x568f40
mov dword [esi + 0x9c], 0xe
jmp 0x568f40
mov dword [esi + 0x9c], 7
lea ecx, [esi + 0x10]
call fcn.005647d0
mov ecx, dword [esi + 0xa0]
mov dword [ecx + 0x14], ebx
push ebx
mov ecx, esi
call fcn.0055da80
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 0x58]
cmp eax, edi
je 0x568fa7
cmp dword [eax], edi
je 0x568fa7
mov eax, dword [eax]
mov ecx, dword [eax + 0x98]
push ecx
push str.next__d_n
lea edx, [ebp - 0x11c]
push edx
call fcn.0061af5b
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.0055b6c0
mov dword [esi + 0xa0], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x568eb7
push str.This_is_the_last_chunk._n
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0x58]
sub eax, ebx
mov ecx, dword [esi + 0x5c]
sbb ecx, edi
mov edx, dword [esi + 0x70]
cmp edx, eax
jne 0x568fe0
mov eax, dword [esi + 0x74]
cmp eax, ecx
jne 0x568fe0
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x3204]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x144], eax
mov dword [esi + 0xa0], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x568eb7