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 [0x140038010]
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, [0x140030ffa]
call rbx
test esi, esi
je 0x1400010be
test eax, eax
je 0x1400010be
mov rcx, qword [rdi + 8]
lea rdx, [0x1400311d8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000117f
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000122a
mov rcx, qword [rdi + 8]
lea rdx, str.check_cert
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ebp, 3
jl 0x14000130f
test eax, eax
jne 0x14000130f
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.14000c3a0
xor esi, esi
test eax, eax
sete sil
jmp 0x14000174f
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 0x14000137e
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001530
xor edi, edi
test esi, esi
sete dil
lea rax, str.Installing_service_with_force_specified...
lea rdx, str.Installing_service...
cmove rdx, rax
add edi, 1
lea rcx, [0x140039fa8]
call fcn.14000ce90
mov ecx, edi
call fcn.140002ee0
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001571
test esi, esi
je 0x1400015b5
lea rcx, [0x140039fa8]
lea rdx, str.The_service_was_installed_successfully
jmp 0x1400012ce
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400011a9
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400013f9
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400015ce
lea rcx, [0x140039fa8]
lea rdx, str.Upgrading_service_if_installed...
call fcn.14000ce90
xor ecx, ecx
call fcn.140002ee0
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000160f
test esi, esi
je 0x140001653
lea rcx, [0x140039fa8]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x1400012ce
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001254
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001474
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000166c
lea rcx, [0x140039fa8]
lea rdx, str.Uninstalling_service...
call fcn.14000ce90
call fcn.1400046c0
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400016ad
test esi, esi
je 0x1400016f1
lea rcx, [0x140039fa8]
lea rdx, str.The_service_was_uninstalled_successfully
call fcn.14000ce90
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400014ef
mov rcx, qword [0x140039fa8]
xor esi, esi
test rcx, rcx
jne 0x14000173f
jmp 0x14000174f
movaps xmm0, xmmword [0x14002e6f0]
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 0x140001377
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400017a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.StartServiceCtrlDispatcher_failed.____d_
mov r8d, eax
call fcn.14000cf10
xor esi, esi
jmp 0x14000174f
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.14000e380
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 int.14000e380
test eax, eax
je 0x1400010e8
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400017e8
lea rcx, [0x140039fa8]
lea rdx, [rsp + 0x20]
call fcn.14000ce00
jmp 0x1400010e8
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.14000e380
test eax, eax
je 0x1400011a9
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 int.14000e380
test eax, eax
je 0x1400011a9
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001829
lea rcx, [0x140039fa8]
lea rdx, [rsp + 0x20]
call fcn.14000ce00
jmp 0x1400011a9
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.14000e380
test eax, eax
je 0x140001254
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 int.14000e380
test eax, eax
je 0x140001254
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000186a
lea rcx, [0x140039fa8]
lea rdx, [rsp + 0x20]
call fcn.14000ce00
jmp 0x140001254
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400012f8
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400012f8
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000110d
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x14000110d
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140001164
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
test esi, esi
jne 0x14000116c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_install_service.____d_
jmp 0x140001705
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400011ce
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400011ce
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000120f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
test esi, esi
jne 0x140001217
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_upgrade_service.____d_
jmp 0x140001705
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140001279
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x140001279
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400012b8
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
test esi, esi
jne 0x1400012c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_uninstall_service.____d_
mov r8d, eax
call fcn.14000cf10
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000176d
mov rcx, qword [0x140039fa8]
mov esi, 1
test rcx, rcx
je 0x14000174f
call fcn.1400160ac
mov qword [0x140039fa8], 0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019600
mov eax, esi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000172e
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x14000172e
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000135b
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x14000135b
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400013e3
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400013e3
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000145e
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x14000145e
lea rcx, [0x14003a1b8]
call fcn.14000e750
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400014d9
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e908
lea rcx, [0x14003a1b8]
call fcn.14000e7b8
jmp 0x1400014d9