Function at 0x140031de0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov r14d, ecx
call fcn.140098140
xor r15d, r15d
mov qword [0x14036fc20], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov qword [0x14036fc20], r15
lea rdx, [0x1402e7374]
mov ecx, 0x4a0
call fcn.140269b18
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140031ee2
lea rax, vtable.CMcFileLog.0
mov qword [rbx], rax
lea rax, [0x14002c320]
mov qword [rbx + 0x498], rax
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x38], r15
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x48], r15
mov dword [rbx + 8], r15d
mov dword [rbx + 0x50], r15d
mov dword [rbx + 0x470], 0x25800
mov dword [rbx + 0x474], 3
mov dword [rbx + 0x478], 3
mov dword [rbx + 0x47c], 0x10
mov dword [rbx + 0x490], 1
mov qword [rbx + 0x480], r15
mov qword [rbx + 0x488], r15
mov qword [rbx + 0x468], r15
jmp 0x140031ee5
mov rbx, r15
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x140031f3b
xor r9d, r9d
mov r8, rsi
lea rdx, str.OOBEUpgrader
mov rcx, rbx
call fcn.14002c4f0
test eax, eax
je 0x140031f1e
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
jmp 0x140031f3b
mov qword [rsp + 0x58], r15
mov qword [0x14036fc20], rbx
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x50]
call qword [case.0x1400ac8a1.0]
nop
mov dword [rsp + 0x58], 0x8000ffff
mov byte [rsp + 0x5c], 0
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.1400268a0
nop
mov sil, 1
mov byte [rsp + 0x20], sil
cmp r14d, 2
jne 0x140031fed
mov rdx, qword [rdi + 8]
lea rcx, str._Setup
call fcn.1402786cc
test eax, eax
jne 0x140031f8f
lea rcx, [rsp + 0x20]
call fcn.1400310c0
movzx esi, byte [rsp + 0x20]
jmp 0x140031fed
mov rdx, qword [rdi + 8]
lea rcx, str._Run
call fcn.1402786cc
test eax, eax
jne 0x140031fcf
mov byte [rsp + 0x21], sil
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x20]
call fcn.1400313f0
cmp byte [rsp + 0x21], 0
je 0x140031fc3
call fcn.140031cf0
movzx esi, byte [rsp + 0x20]
test sil, sil
je 0x140031fed
jmp 0x140031fe8
mov rdx, qword [rdi + 8]
lea rcx, str._Cleanup
call fcn.1402786cc
test eax, eax
jne 0x140031fed
call fcn.140031cf0
call fcn.140030790
lea r14, [0x14036fa10]
mov qword [rsp + 0x48], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x50], 1
mov ebx, r15d
cmp dword [0x14036f660], 1
jne 0x1400320ed
mov rdi, qword [0x14036fbb0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov qword [rsp + 0x28], r15
movdqa xmm0, xmmword [0x1403149c0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r15w
mov r8d, 0x24
lea rdx, str.Analytics.ScriptHost.Terminate.Delay
lea rcx, [rsp + 0x28]
call fcn.140025e70
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x60]
mov rcx, rdi
mov rax, rbx
call qword [case.0x1400ac8a1.0]
nop
lea rcx, [rsp + 0x28]
call fcn.140025de0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call fcn.140277a3c
mov ebx, eax
mov rcx, qword [0x14036fbb0]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
call qword [case.0x1400ac8a1.0]
mov rcx, qword [0x14036fbb0]
mov r8, qword [rcx]
mov rax, qword [r8 + 0x20]
call qword [case.0x1400ac8a1.0]
mov rcx, qword [0x14036fbb0]
mov qword [0x14036fbb0], r15
test rcx, rcx
je 0x1400320db
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
mov dword [0x14036f660], r15d
lea rcx, [rsp + 0x60]
call fcn.140025de0
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test sil, sil
je 0x1400321ab
test ebx, ebx
je 0x14003211c
mov eax, 0x1e
cmp ebx, eax
cmovg ebx, eax
lea eax, [rbx + 0xa]
imul ecx, eax, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140031ae0
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x80]
call fcn.14026c200
mov r8d, 0x208
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400321ab
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400321ab
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.14026b9c8
test rax, rax
je 0x1400321ab
mov word [rax], r15w
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.14026b9c8
test rax, rax
je 0x1400321ab
lea rcx, [rax + 2]
lea rdx, str.OOBE_Upgrader
call fcn.1402786cc
test eax, eax
jne 0x1400321ab
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
lea rcx, [rsp + 0x58]
call fcn.1400268e0
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140269300
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret