Function at 0x140001000
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rdi, rdx
mov ebp, ecx
mov rax, qword [0x140033138]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [rdx + 8]
lea rdx, str.forceinstall
mov rbx, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
call rbx
mov esi, eax
mov rcx, qword [rdi + 8]
lea rdx, [0x14002cf58]
call rbx
test eax, eax
je 0x1400010be
test esi, esi
je 0x1400010be
mov rcx, qword [rdi + 8]
lea rdx, [0x14002d136]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001192
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001369
mov rcx, qword [rdi + 8]
lea rdx, str.check_cert
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ebp, 3
jl 0x14000147d
test eax, eax
jne 0x14000147d
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.140007b40
xor esi, esi
test eax, eax
sete sil
jmp 0x140001561
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001152
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001152
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140009d40
test eax, eax
je 0x140001152
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.maintenanceservice_install.log
mov rcx, rdi
call fcn.140009d40
test eax, eax
je 0x140001152
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000177b
lea rcx, [0x140033c68]
lea rdx, [rsp + 0x20]
call fcn.140008570
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test esi, esi
je 0x1400012a5
cmp eax, ecx
jg 0x14000157f
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x1400012b9
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001226
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001226
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140009d40
test eax, eax
je 0x140001226
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.maintenanceservice_install.log
mov rcx, rsi
call fcn.140009d40
test eax, eax
je 0x140001226
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400018c5
lea rcx, [0x140033c68]
lea rdx, [rsp + 0x20]
call fcn.140008570
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001625
lea rcx, [0x140033c68]
lea rdx, str.Upgrading_service_if_installed...
call fcn.140008610
xor ecx, ecx
call fcn.140003300
mov ecx, dword [0x140033e78]
mov edx, dword [0x140033ed8]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x1400014e9
cmp ecx, edx
jg 0x1400016f7
lea rcx, [0x140033c68]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x140001309
cmp eax, ecx
jg 0x140001667
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
lea rcx, [0x140033c68]
mov rdx, rdi
call fcn.140008610
mov ecx, esi
call fcn.140003300
mov ecx, dword [0x140033e78]
mov edx, dword [0x140033ed8]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001348
cmp ecx, edx
jg 0x14000159c
lea rcx, [0x140033c68]
lea rdx, str.The_service_was_installed_successfully
call fcn.140008610
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
xor esi, esi
cmp eax, dword [rcx + 4]
jle 0x140001555
lea rcx, [0x140033e78]
call fcn.14000aa90
xor esi, esi
jmp 0x1400015ef
cmp ecx, edx
jg 0x1400016b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_install_service.____lu_
jmp 0x140001523
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400013fd
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400013fd
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140009d40
test eax, eax
je 0x1400013fd
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.maintenanceservice_uninstall.log
mov rcx, rsi
call fcn.140009d40
test eax, eax
je 0x1400013fd
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001907
lea rcx, [0x140033c68]
lea rdx, [rsp + 0x20]
call fcn.140008570
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001739
lea rcx, [0x140033c68]
lea rdx, str.Uninstalling_service...
call fcn.140008610
call fcn.1400043a0
mov ecx, dword [0x140033e78]
mov edx, dword [0x140033ed8]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001507
cmp ecx, edx
jg 0x1400017bd
lea rcx, [0x140033c68]
lea rdx, str.The_service_was_uninstalled_successfully
jmp 0x140001309
movaps xmm0, xmmword [0x140025020]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str.MozillaMaintenance]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400014e5
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001883
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.StartServiceCtrlDispatcher_failed.____lu_
mov r8d, eax
call fcn.140008690
xor esi, esi
jmp 0x140001561
cmp ecx, edx
jg 0x1400017ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_upgrade_service.____lu_
jmp 0x140001523
cmp ecx, edx
jg 0x140001841
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140033c68]
lea rdx, str.Could_not_uninstall_service.____lu_
mov r8d, eax
call fcn.140008690
mov eax, dword [0x140033e78]
mov ecx, dword [0x140033ed8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov esi, 1
cmp eax, dword [rcx + 4]
jg 0x1400015de
lea rcx, [0x140033c68]
call fcn.1400085d0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000acd0
mov eax, esi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140033e78]
call fcn.14000aa90
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x14000167f
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400012fb
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400012fb
lea rcx, [0x140033e78]
call fcn.14000aa90
mov esi, 1
cmp dword [0x140033e78], 0xffffffff
jne 0x140001555
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001555
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x14000124b
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x14000124b
lea rcx, [0x140033e78]
call fcn.14000aa90
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
cmp dword [0x140033e78], 0xffffffff
jne 0x1400012b9
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400012b9
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140001350
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001350
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140001295
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001295
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140001422
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001422
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140001141
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001141
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x14000146a
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x14000146a
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400014f1
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400014f1
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x14000150f
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x14000150f
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400014c9
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400014c9
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x140001215
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x140001215
lea rcx, [0x140033e78]
call fcn.14000aa90
cmp dword [0x140033e78], 0xffffffff
jne 0x1400013ec
lea rcx, [0x140033c68]
call fcn.140008560
lea rcx, [0x140002160]
call fcn.14000acf4
lea rcx, [0x140033e78]
call fcn.14000aaf8
jmp 0x1400013ec