Function at 0x49e5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push str.____________________Entrance____________________
lea ecx, [ebp - 0x30]
lea eax, [edi + 4]
push ecx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], str.Download
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 0x519518
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x49ea27
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov edx, dword [ecx]
test edx, edx
je 0x49e685
push str.______________________Exit______________________
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x1000
call fcn.004a3368
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov byte [eax + 0xc0393], bl
mov eax, dword [edi]
mov dword [eax + 0xc0394], ebx
mov eax, dword [edi]
mov dword [eax + 0xc0398], ebx
mov eax, dword [edi]
mov dword [eax + 0xc039c], ebx
mov eax, dword [edi]
mov dword [eax + 0xc03a0], ebx
mov eax, dword [edi]
mov dword [eax + 0xc03a4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
add esi, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esi]
call eax
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x49e73b
mov edx, dword [ebp - 0x18]
push edx
call fcn.004a529a
push str.______________________Exit______________________
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.00471a00
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [ebp - 0x78], edx
lea edx, [ebp - 0x1c]
lea eax, [ecx + 0xc038c]
mov dword [ebp - 0x74], edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ebx
cmp eax, ebx
je 0x49e769
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
jmp 0x49e76c
mov dword [ebp - 0x64], ebx
fldz
mov dword [ebp - 0x50], ebx
fst qword [ebp - 0x60]
fstp qword [ebp - 0x58]
mov eax, 0x1000
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
push eax
push edx
push ecx
call dword [0x519544]
add esp, 0xc
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.004769e0
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x49e7e4
mov eax, dword [ebp - 0x18]
push eax
call fcn.004a529a
push str.______________________Exit______________________
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
push ecx
push edx
call fcn.00471a00
add esp, 0x10
mov eax, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, ebx
je 0x49e89e
mov eax, dword [esi]
mov dword [ebp - 0x20], ebx
test eax, eax
jne 0x49e9e0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [eax]
push edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x49e85a
call fcn.00405b90
cmp eax, ebx
jge 0x49e85a
push esi
call fcn.004a529a
push str.______________________Exit______________________
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push edx
push eax
call fcn.00471a00
add esp, 0x10
mov eax, 0xe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x14], ebx
jne 0x49e89b
mov eax, dword [edi]
push eax
call dword [0x51954c]
fmul qword [0x4fae10]
mov ecx, dword [ebp + 8]
fnstcw word [ebp - 0x12]
movzx eax, word [ebp - 0x12]
mov edx, dword [ecx]
or eax, 0xc00
mov dword [ebp - 0x24], eax
add esp, 4
push ebx
fldcw word [ebp - 0x24]
fistp qword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
push eax
fldcw word [ebp - 0x12]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0x10]
mov eax, dword [edi]
push eax
call dword [0x519540]
add esp, 4
cmp eax, ebx
je 0x49e8c8
mov eax, dword [edi]
push eax
call dword [0x51953c]
add esp, 4
cmp eax, ebx
jne 0x49e8c8
mov ecx, dword [esi]
test ecx, ecx
je 0x49e6f7
mov ecx, dword [ebp - 0x14]
fldz
cmp ecx, ebx
je 0x49e912
mov eax, dword [edi]
fstp st(0)
mov edx, dword [eax + 0xc038c]
fild dword [eax + 0xc038c]
test edx, edx
jge 0x49e8eb
fadd qword [0x4fae18]
fmul qword [0x4fae50]
mov dword [ebp - 0x24], ecx
fild dword [ebp - 0x24]
test ecx, ecx
jge 0x49e901
fadd qword [0x4fae18]
fdivp st(1)
fld qword [0x4faed0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x49e96b
sub esp, 8
fstp qword [esp]
push str.Downloaded__.1lf____from_video._Download_failed.
lea eax, [ebp - 0x30]
push eax
add edi, 4
push edi
call fcn.00471980
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
call fcn.004a529a
push str.______________________Exit______________________
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push edx
push eax
call fcn.00471a00
add esp, 0x10
mov eax, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
fstp st(0)
push edi
call fcn.0049ea70
cmp eax, ebx
je 0x49e9cd
push str.Wrong_file_format._Download_failed
lea ecx, [ebp - 0x30]
push ecx
add edi, 4
push edi
call fcn.00471980
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call fcn.004a529a
push str.______________________Exit______________________
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.00471a00
add esp, 0x10
mov eax, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x49ea1b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a529a
push str.______________________Exit______________________
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push edx
push eax
call fcn.00471a00
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a529a
add esp, 4
push str.______________________Exit______________________
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push edx
push eax
call fcn.00471a00
mov eax, 1
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc