Function at 0x455d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x28], ebx
push edi
mov ecx, ebx
call fcn.00447010
mov edi, eax
mov ecx, ebx
mov dword [esi + 0xc40], edi
call fcn.00457850
mov ebx, eax
test edi, edi
jne 0x455df6
mov dword [esi + 0xc38], edi
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00457850
cmp eax, 0xffffffff
jne 0x455fc3
lea eax, [esi + 0xc28]
mov ecx, edi
push eax
lea eax, [esi + 0xc24]
push eax
call fcn.00457800
mov ecx, dword [0x4c3118]
push 1
push str.download_only_on
call fcn.004038d0
test eax, eax
je 0x455dd9
cmp dword [esi + 0xc18], 0
jne 0x455dd9
mov ecx, esi
call fcn.00455270
mov ecx, esi
call fcn.00455c00
mov ecx, esi
call fcn.00454ba0
mov eax, dword [esi + 0xc40]
test eax, eax
je 0x455e0b
push 0x490cb9
push eax
push dword [0x4c3114]
mov ecx, esi
call fcn.00456f10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.00457720
mov ecx, esi
mov dword [esi + 0xb8c], eax
call fcn.00455790
mov ecx, dword [esi + 0xb30]
xorps xmm0, xmm0
mov eax, dword [esi + 0xb34]
shl eax, 0x12
mov byte [ebp - 0x18], 0
lea ecx, [ecx + 0x3fff]
mov word [ebp - 7], 0
shr ecx, 0xe
add eax, ecx
mov byte [ebp - 5], 0
mov ecx, 1
cmp eax, ecx
movups xmmword [ebp - 0x17], xmm0
cmovb eax, ecx
mov ecx, edi
mov dword [esi + 0xc10], eax
call fcn.00457840
lea edx, [esi + 0xbfc]
mov dword [ebp - 0x20], 0x10
mov ecx, eax
mov dword [ebp - 0x24], edx
lea ebx, [ebp - 0x18]
nop word [eax + eax]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx]
cmp eax, dword [edi]
jne 0x455e9c
add dword [ebp - 0x24], 4
add ebx, 4
sub dword [ebp - 0x20], 4
jae 0x455e80
mov byte [ebp - 0x19], 1
jmp 0x455ea0
mov byte [ebp - 0x19], 0
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0x10
nop dword [eax]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx]
cmp eax, dword [edi]
mov edi, dword [ebp - 0x28]
jne 0x455ecd
add dword [ebp - 0x24], 4
add ebx, 4
sub dword [ebp - 0x20], 4
jae 0x455eb0
mov al, 1
jmp 0x455ecf
xor al, al
cmp byte [ebp - 0x19], 0
jne 0x455f1d
test al, al
jne 0x455f2d
mov ebx, 0x10
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x455ef3
add edx, 4
add ecx, 4
sub ebx, 4
jae 0x455ee0
jmp 0x455f2d
push 0x490cb9
push 1
mov dword [esi + 0xc40], 1
mov ecx, esi
push dword [0x4c3114]
call fcn.00456f10
push 1
push str.File_Transfer:_Hash_is_different___
jmp 0x4562c7
test al, al
jne 0x455f2d
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0xb30]
mov ecx, dword [esi + 0xb34]
cmp dword [esi + 0xc2c], eax
jne 0x455f52
cmp dword [esi + 0xc30], ecx
jne 0x455f52
cmp dword [esi + 0xbf8], 0
jne 0x455fa4
push dword [esi + 0xbf8]
mov dword [esi + 0xc2c], eax
mov dword [esi + 0xc30], ecx
mov dword [esi + 0xc18], 0
mov dword [esi + 0xc34], 0
mov dword [esi + 0xc20], 0
call fcn.0046b4f4
mov eax, dword [esi + 0xc10]
add eax, 7
shr eax, 3
push 0
push eax
call fcn.004578a0
add esp, 0xc
mov dword [esi + 0xbf8], eax
push edi
mov ecx, esi
call fcn.004567e0
mov eax, dword [esi + 0xc18]
add eax, dword [esi + 0xb8c]
mov dword [esi + 0xc34], eax
jmp 0x456264
mov ecx, esi
test edi, edi
je 0x456287
call fcn.00457470
push 0
call fcn.00457a70
mov dword [esi + 0xb40], eax
add esp, 4
mov eax, dword [esi + 0xc10]
mov dword [esi + 0xb44], edx
cmp ebx, eax
jbe 0x456028
push eax
push ebx
push str.xfer_recv:_idx_out_of_range___d__top_is__d_
push 4
lea ecx, [ebp - 0x19]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x14
mov ecx, esi
push 0x490cb9
push 1
push dword [esi]
call fcn.00456f10
push 1
push str.idx_out_of_range
jmp 0x4562c7
xor ecx, ecx
mov eax, ebx
shld ecx, eax, 0xe
mov edx, ebx
mov eax, ecx
shl edx, 0xe
sar eax, 0x1f
cmp dword [esi + 0xbf0], edx
jne 0x45604a
cmp dword [esi + 0xbf4], ecx
je 0x4560a8
push 0
lea eax, [ebp - 0x20]
mov dword [esi + 0xbf0], edx
push eax
push edx
push dword [esi + 0xb94]
mov dword [esi + 0xbf4], ecx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4560a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4560a8
push 0x490cb9
push 1
push dword [esi]
mov ecx, esi
call fcn.00456f10
push 1
push str.error_seeking
mov ecx, esi
call fcn.004562f0
mov dword [esi + 0xc40], 1
jmp 0x4562ce
cmp ebx, dword [esi + 0xc10]
jae 0x456102
mov ecx, edi
call fcn.00457750
cmp eax, 0x4000
jbe 0x456102
mov eax, dword [esi + 0xbf8]
mov ecx, ebx
shr ecx, 3
movzx edx, byte [ecx + eax]
mov ecx, ebx
and ecx, 7
mov eax, 1
shl eax, cl
mov ecx, edi
and edx, eax
push edx
push 0x4000
call fcn.00457750
push eax
push ebx
push str.xfer_recv:_chunk__d__got_size_of__d_and_should_have_been__d__was_valid_d_
push 4
lea ecx, [ebp - 0x19]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x1c
mov ecx, edi
mov dword [ebp - 0x28], 0
call fcn.00457750
test eax, eax
je 0x456140
push 0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00457750
push eax
mov ecx, edi
call fcn.00457740
push eax
push dword [esi + 0xb94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, edi
call fcn.00457750
cmp dword [ebp - 0x28], eax
jae 0x456158
push 0
push str.error_writing__disk_full___
jmp 0x4562c7
mov ecx, edi
call fcn.00457750
mov edx, dword [ebp - 0x28]
cmp edx, eax
je 0x456186
push 0x490cb9
push 1
push dword [0x4c3114]
mov ecx, esi
call fcn.00456f10
push 1
push str.error_writing__fault_
jmp 0x4562c7
mov ecx, dword [esi + 0xbf0]
lea eax, [ecx + edx]
mov dword [esi + 0xbf0], eax
cmp eax, ecx
jae 0x45619f
inc dword [esi + 0xbf4]
cmp ebx, 0xffffffff
jae 0x4561ff
cmp dword [esi + 0xbf8], 0
jne 0x4561ca
mov eax, dword [esi + 0xc10]
add eax, 7
shr eax, 3
push 0
push eax
call fcn.004578a0
add esp, 8
mov dword [esi + 0xbf8], eax
mov ecx, dword [esi + 0xbf8]
test ecx, ecx
je 0x4561ff
mov eax, ebx
mov edx, 1
shr eax, 3
and ebx, 7
add eax, ecx
mov ecx, ebx
mov dword [ebp - 0x20], eax
shl edx, cl
movzx eax, byte [eax]
test eax, edx
jne 0x4561ff
mov ecx, dword [ebp - 0x20]
bts eax, ebx
mov byte [ecx], al
inc dword [esi + 0xc18]
dec dword [esi + 0xb8c]
cmp dword [esi + 0xc40], 2
mov eax, dword [esi + 0xbc0]
je 0x456246
test eax, eax
je 0x456231
push eax
mov eax, dword [esi + 0xc10]
sub eax, dword [esi + 0xc18]
push 0x4000
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0xc40], 1
jne 0x456246
push 1
push str.Failed_to_Complete
jmp 0x4562c7
cmp dword [esi + 0xc10], 1
jne 0x456264
mov ecx, edi
call fcn.00457750
test eax, eax
jne 0x456264
mov dword [esi + 0xc40], 2
push 0
push 0x490cb9
mov ecx, esi
call fcn.004562f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4
push 0x490cb9
push 1
push dword [0x4c3114]
call fcn.00456f10
push str.data_with_no_header
push str.xfer_recv:_got__s
push 4
lea ecx, [ebp - 0x19]
mov dword [esi + 0xc40], 1
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
push 1
push str.data_with_no_header
mov ecx, esi
call fcn.004562f0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4