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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62be10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x120]
mov eax, dword [esi + 0x88]
xor ebx, ebx
push eax
push str.conn.__d_dowload_completed_n
push ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
call fcn.005e7bd3
add esp, 0xc
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.0054d2a0
mov eax, dword [esi + 0x90]
mov eax, dword [eax + 0x58]
cmp eax, ebx
je 0x55e5a2
cmp dword [eax + 0x14], ebx
jne 0x55e5a2
mov ebx, dword [eax]
test ebx, ebx
je 0x55e5a0
mov eax, dword [ebx + 0x6c]
test eax, eax
jl 0x55e3cd
jg 0x55e3ba
cmp dword [ebx + 0x68], 0x40
jbe 0x55e3cd
mov al, byte [ebx + 0xc0]
test al, al
jne 0x55e3cd
xor edx, edx
mov edi, 1
jmp 0x55e3d4
mov edi, 1
mov edx, edi
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
add eax, edi
adc ecx, 0
cmp eax, dword [ebx + 0x50]
jne 0x55e5a9
cmp ecx, dword [ebx + 0x54]
jne 0x55e5a9
test edx, edx
je 0x55e5a9
mov ecx, dword [esi + 0x88]
mov edx, dword [ebx + 0x88]
push ecx
push edx
lea eax, [ebp - 0x120]
push str.The_file_chunk_of_connection__d_is_reassigned_to_connection__d._n
push eax
call fcn.005e7bd3
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0054d2a0
mov al, byte [ebx + 0xc0]
test al, al
jne 0x55e453
mov eax, dword [esi + 0x31f4]
mov edx, dword [ebx + 0x68]
mov edi, dword [eax + 0x1c0]
sub edi, edx
mov dword [eax + 0x1c0], edi
mov ecx, dword [ebx + 0x6c]
sbb dword [eax + 0x1c4], ecx
mov byte [ebx + 0xc0], 0
mov edx, dword [str.QUIT_r_n]
mov ax, word [0x6c0278]
mov cl, byte [0x6c027a]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x88]
mov word [ebp - 0x14], ax
push edx
lea eax, [ebp - 0x120]
push str.Sendig_QUIT_for_connection__d..._n
push eax
mov byte [ebp - 0x12], cl
call fcn.005e7bd3
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0054d2a0
lea edi, [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
push str.send___QUIT
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x31e4]
push 0
not ecx
dec ecx
lea edx, [ebp - 0x18]
push ecx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
test eax, eax
je 0x55e4d7
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x20]
mov dword [ebx + 0x8c], 7
mov eax, dword [esi + 0x90]
xor edi, edi
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x55e568
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax + 0x88]
lea eax, [ebp - 0x120]
push edx
push str.Sendig_QUIT_for_connection__d..._n
push eax
call fcn.005e7bd3
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0054d2a0
push str.send___QUIT
push edi
lea edi, [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x18]
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0x1c]
not ecx
mov eax, dword [edi + 0x31e4]
dec ecx
push ecx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
test eax, eax
je 0x55e55b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x20]
mov dword [edi + 0x8c], 7
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x31f4]
push eax
add ecx, 0x28
call fcn.00545020
xor eax, eax
cmp edi, eax
mov dword [ebx + 0x90], eax
je 0x55e58f
mov dword [edi + 0x90], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, 1
jmp 0x55e5ab
xor ebx, ebx
mov ecx, esi
call fcn.00557c60
cmp eax, ebx
je 0x55e601
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
mov ecx, dword [esi + 0x31f4]
call fcn.00563a20
cmp eax, ebx
je 0x55e5f5
lea ecx, [esi + 0x31d8]
mov dword [esi + 0x84], edi
mov dword [esi + 8], edi
call fcn.0059db20
mov dword [esi + 0x68], ebx
mov ecx, esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x31ec], edi
call fcn.00557da0
jmp 0x55e60b
mov dword [esi + 0x8c], 0xe
jmp 0x55e60b
mov dword [esi + 0x8c], 7
lea ecx, [esi + 0x10]
call fcn.00555be0
mov eax, dword [esi + 0x90]
push edi
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.005518a0
mov ecx, dword [esi + 0x90]
mov eax, dword [ecx + 0x58]
cmp eax, ebx
je 0x55e677
mov eax, dword [eax]
cmp eax, ebx
je 0x55e677
mov edx, dword [eax + 0x88]
lea eax, [ebp - 0x120]
push edx
push str.next__d_n
push eax
call fcn.005e7bd3
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.0054d2a0
mov dword [esi + 0x90], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.This_is_the_last_chunk._n
mov ecx, esi
call fcn.0054d2a0
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x60]
sub eax, edi
sbb ecx, ebx
cmp edx, eax
jne 0x55e6b0
mov eax, dword [esi + 0x64]
cmp eax, ecx
jne 0x55e6b0
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x31f4]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x144], eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x90], ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret