Function at 0x140014aec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rdi, rcx
xor r12d, r12d
xor ecx, ecx
mov esi, r12d
call qword [sym.imp.ole32.dll_CoInitialize]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
mov ebx, eax
call qword [sym.imp.USER32.dll_PeekMessageW]
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
jns 0x140014b47
mov ecx, ebx
call fcn.140015df0
jmp 0x140014d0d
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x140014cf7
mov r14d, 1
test eax, eax
je 0x140014cff
mov eax, dword [rsp + 0x38]
cmp eax, 0x5cc
jne 0x140014d30
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x6c], 5
je 0x140014b9a
mov rcx, rdi
call fcn.140013ff0
mov esi, eax
test esi, esi
jns 0x140014ba3
mov dword [rdi + 0x58], esi
jmp 0x140014bf5
cmp dword [rdi + 0x6c], 5
jne 0x140014bf5
cmp qword [0x140051660], r12
mov ebp, 0x80004005
jne 0x140014bbe
mov ebp, 0x8000ffff
jmp 0x140014bf2
call fcn.140013f3c
mov r14, rax
test rax, rax
je 0x140014bee
call fcn.14000420c
test eax, eax
je 0x140014bd8
mov dword [r14 + 0x68], r12d
mov rcx, r14
call fcn.14002bbec
mov ebp, eax
test eax, eax
js 0x140014bee
mov rcx, r14
call fcn.14002c498
test ebp, ebp
jns 0x140014bf5
mov dword [rdi + 0x58], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [rdi]
test rbp, rbp
je 0x140014c92
cmp qword [rbp + 0x48], r12
jne 0x140014c5b
mov ecx, 0x200
call fcn.14003c460
mov r14, rax
test rax, rax
je 0x140014c5b
mov rcx, qword [0x140050d10]
mov r15d, 0x100
mov r9d, r15d
mov r8, rax
mov edx, 0x26eb
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140014c57
lea r8, str.Windows_Media_Setup
mov edx, r15d
mov rcx, r14
call fcn.140001470
mov qword [rbp + 0x48], r14
mov rcx, qword [0x1400516d8]
mov rbp, qword [rbp + 0x48]
test rcx, rcx
je 0x140014cc0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140014c92
test rbp, rbp
je 0x140014c92
mov rcx, qword [0x1400516d8]
mov r9, rbp
xor r8d, r8d
mov edx, 0x5d7
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140014cc0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140014cc0
mov rcx, qword [0x1400516d8]
xor r8d, r8d
movsxd r9, esi
mov edx, 0x5cd
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014cd5
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r14d, 1
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x140014b69
mov ecx, dword [rdi + 0x58]
call fcn.140015df0
call qword [sym.imp.msvcrt.dll__endthread]
mov qword [rdi + 8], r12
mov dword [rdi + 0x68], r12d
test ebx, ebx
js 0x140014d17
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp eax, 0x5d2
jne 0x140014dd2
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.140014114
mov esi, eax
test eax, eax
jns 0x140014d56
mov dword [rdi + 0x58], eax
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r9, str.E33D49A9_409C_4acd_A1F5_DA7DBB99EB30
mov r8d, r14d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbp, rax
test rax, rax
jne 0x140014d95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateEvent_For_ExitSyncEvent_failed.__LastError:_0x_x._r_n
lea ecx, [rbp + 4]
call fcn.1400168a8
mov ecx, dword [rdi + 0x58]
call fcn.140015e3c
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014db2
call qword [sym.imp.KERNEL32.dll_SetEvent]
test rbp, rbp
je 0x140014cdb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014cdb
cmp eax, 0x5ce
jne 0x140014ea9
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140014e09
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140014e3a
cmp dword [0x1400516e0], 4
jl 0x140014e3a
lea r9, [rsp + 0x90]
mov dword [rsp + 0x90], r12d
mov r8d, 0x3d
mov qword [rsp + 0x20], r12
lea rdx, str.Setup_preparing_to_download_needed_files_from_network._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rdi + 0x80]
mov rcx, qword [rdi]
call fcn.140023bb0
mov r8d, eax
lea rdx, str._r_nDownload_complete.__Result:_0x_x._r_n
mov ecx, 4
mov esi, eax
call fcn.1400168a8
test esi, esi
jns 0x140014e66
mov dword [rdi + 0x58], esi
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rdi + 0x58]
test ecx, ecx
js 0x140014e80
cmp esi, r14d
cmove ecx, r14d
jmp 0x140014e86
test esi, esi
cmove ecx, r12d
call fcn.140015e80
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014cdb
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140014cdb
cmp eax, 0x5cf
jne 0x140014cdb
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400141f0
mov esi, eax
cmp eax, 0xffffffff
jle 0x140014ed7
add eax, 0xfff2d508
cmp eax, r14d
ja 0x140014eda
mov dword [rdi + 0x58], esi
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rdi + 0x58]
call fcn.140015df0
jmp 0x140014e8b