Function at 0x140014aac
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 0x140014b07
mov ecx, ebx
call fcn.140015db0
jmp 0x140014ccd
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x140014cb7
mov r14d, 1
test eax, eax
je 0x140014cbf
mov eax, dword [rsp + 0x38]
cmp eax, 0x5cc
jne 0x140014cf0
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x6c], 5
je 0x140014b5a
mov rcx, rdi
call fcn.140013fbc
mov esi, eax
test esi, esi
jns 0x140014b63
mov dword [rdi + 0x58], esi
jmp 0x140014bb5
cmp dword [rdi + 0x6c], 5
jne 0x140014bb5
cmp qword [0x140051660], r12
mov ebp, 0x80004005
jne 0x140014b7e
mov ebp, 0x8000ffff
jmp 0x140014bb2
call fcn.140013f08
mov r14, rax
test rax, rax
je 0x140014bae
call fcn.140004200
test eax, eax
je 0x140014b98
mov dword [r14 + 0x68], r12d
mov rcx, r14
call fcn.14002bafc
mov ebp, eax
test eax, eax
js 0x140014bae
mov rcx, r14
call fcn.14002c3a8
test ebp, ebp
jns 0x140014bb5
mov dword [rdi + 0x58], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [rdi]
test rbp, rbp
je 0x140014c52
cmp qword [rbp + 0x48], r12
jne 0x140014c1b
mov ecx, 0x200
call fcn.14003c310
mov r14, rax
test rax, rax
je 0x140014c1b
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 0x140014c17
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 0x140014c80
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140014c52
test rbp, rbp
je 0x140014c52
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 0x140014c80
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140014c80
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 0x140014c95
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 0x140014b29
mov ecx, dword [rdi + 0x58]
call fcn.140015db0
call qword [sym.imp.msvcrt.dll__endthread]
mov qword [rdi + 8], r12
mov dword [rdi + 0x68], r12d
test ebx, ebx
js 0x140014cd7
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 0x140014d92
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400140e0
mov esi, eax
test eax, eax
jns 0x140014d16
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 0x140014d55
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.140016868
mov ecx, dword [rdi + 0x58]
call fcn.140015dfc
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014d72
call qword [sym.imp.KERNEL32.dll_SetEvent]
test rbp, rbp
je 0x140014c9b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014c9b
cmp eax, 0x5ce
jne 0x140014e69
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140014dc9
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140014dfa
cmp dword [0x1400516e0], 4
jl 0x140014dfa
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.140023b50
mov r8d, eax
lea rdx, str._r_nDownload_complete.__Result:_0x_x._r_n
mov ecx, 4
mov esi, eax
call fcn.140016868
test esi, esi
jns 0x140014e26
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 0x140014e40
cmp esi, r14d
cmove ecx, r14d
jmp 0x140014e46
test esi, esi
cmove ecx, r12d
call fcn.140015e40
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014c9b
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140014c9b
cmp eax, 0x5cf
jne 0x140014c9b
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400141bc
mov esi, eax
cmp eax, 0xffffffff
jle 0x140014e97
add eax, 0xfff2d508
cmp eax, r14d
ja 0x140014e9a
mov dword [rdi + 0x58], esi
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rdi + 0x58]
call fcn.140015db0
jmp 0x140014e4b