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 [0x140037010]
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, [0x14003008e]
call rbx
test esi, esi
je 0x1400010be
test eax, eax
je 0x1400010be
mov rcx, qword [rdi + 8]
lea rdx, [0x14003026c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001193
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000123e
mov rcx, qword [rdi + 8]
lea rdx, str.check_cert
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ebp, 3
jl 0x14000131a
test eax, eax
jne 0x14000131a
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.14000af80
xor esi, esi
test eax, eax
sete sil
jmp 0x1400013fb
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400010e8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001419
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400015cb
xor edi, edi
test esi, esi
sete dil
lea rax, str.Installing_service_with_force_specified...
lea rdx, str.Installing_service...
cmove rdx, rax
inc edi
lea rcx, [0x140038f98]
call fcn.14000ba30
mov ecx, edi
call fcn.140002be0
mov esi, eax
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000160c
test esi, esi
je 0x14000117a
lea rcx, [0x140038f98]
lea rdx, str.The_service_was_installed_successfully
jmp 0x1400012e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_install_service.____d_
jmp 0x1400013ad
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400011bd
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001494
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000168e
lea rcx, [0x140038f98]
lea rdx, str.Upgrading_service_if_installed...
call fcn.14000ba30
xor ecx, ecx
call fcn.140002be0
mov esi, eax
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400016cf
test esi, esi
je 0x140001383
lea rcx, [0x140038f98]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x1400012e2
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001268
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000150f
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001710
lea rcx, [0x140038f98]
lea rdx, str.Uninstalling_service...
call fcn.14000ba30
call fcn.140004310
mov esi, eax
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001751
test esi, esi
je 0x140001399
lea rcx, [0x140038f98]
lea rdx, str.The_service_was_uninstalled_successfully
call fcn.14000ba30
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000158a
mov rcx, qword [0x140038f98]
xor esi, esi
jmp 0x1400013e6
movaps xmm0, xmmword [0x14002d6f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmm0, xmmword [str.MozillaMaintenance]
movaps xmmword [rcx], xmm0
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000137f
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001792
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.StartServiceCtrlDispatcher_failed.____d_
mov r8d, eax
call fcn.14000bb20
xor esi, esi
jmp 0x1400013fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_upgrade_service.____d_
jmp 0x1400013ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038f98]
lea rdx, str.Could_not_uninstall_service.____d_
mov r8d, eax
call fcn.14000bb20
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000164d
mov rcx, qword [0x140038f98]
mov esi, 1
test rcx, rcx
je 0x1400013fb
call fcn.140016008
mov qword [0x140038f98], 0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019150
mov eax, esi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.14000d1a0
test eax, eax
je 0x1400010e8
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.14000d1a0
test eax, eax
je 0x1400010e8
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400017d3
lea rcx, [0x140038f98]
lea rdx, [rsp + 0x20]
call fcn.14000b9a0
jmp 0x1400010e8
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.14000d1a0
test eax, eax
je 0x1400011bd
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.14000d1a0
test eax, eax
je 0x1400011bd
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001814
lea rcx, [0x140038f98]
lea rdx, [rsp + 0x20]
call fcn.14000b9a0
jmp 0x1400011bd
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.14000d1a0
test eax, eax
je 0x140001268
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.14000d1a0
test eax, eax
je 0x140001268
mov eax, dword [0x1400391a8]
mov ecx, dword [0x140037cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001855
lea rcx, [0x140038f98]
lea rdx, [rsp + 0x20]
call fcn.14000b9a0
jmp 0x140001268
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x14000130c
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x14000130c
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x14000110d
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x14000110d
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140001163
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140001163
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x1400013da
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x1400013da
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x1400011e2
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x1400011e2
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140001223
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140001223
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x14000128d
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x14000128d
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x1400012cc
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x1400012cc
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140001363
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140001363
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x14000147e
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x14000147e
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x1400014f9
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x1400014f9
lea rcx, [0x1400391a8]
call fcn.14000e400
cmp dword [0x1400391a8], 0xffffffff
jne 0x140001574
mov qword [0x140038f98], 0
lea rcx, [0x140002040]
call fcn.14000e5b8
lea rcx, [0x1400391a8]
call fcn.14000e468
jmp 0x140001574