Function at 0x140001650
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rdi, rdx
mov ebp, ecx
mov rax, qword [0x140033010]
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, [0x14002ceae]
call rbx
test eax, eax
je 0x14000170e
test esi, esi
je 0x14000170e
mov rcx, qword [rdi + 8]
lea rdx, [0x14002d08c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400017fb
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400018a7
mov rcx, qword [rdi + 8]
lea rdx, [0x14002cd74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000198b
cmp ebp, 3
jl 0x14000198b
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.1400083e0
xor esi, esi
test eax, eax
sete sil
jmp 0x140001a7f
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001738
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001a9d
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test esi, esi
je 0x140001771
cmp eax, ecx
jg 0x140001c0e
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x140001785
cmp eax, ecx
jg 0x140001cb2
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
lea rcx, [0x140034f88]
mov rdx, rdi
call fcn.140008ed0
mov ecx, esi
call fcn.140002f20
mov ecx, dword [0x140035198]
mov edx, dword [0x140033cbc]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x1400017da
cmp ecx, edx
jg 0x140001c2b
lea rcx, [0x140034f88]
lea rdx, str.The_service_was_installed_successfully
jmp 0x14000194c
cmp ecx, edx
jg 0x140001cff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_install_service.____d_
jmp 0x140001a31
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001825
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b18
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001d40
lea rcx, [0x140034f88]
lea rdx, str.Upgrading_service_if_installed...
call fcn.140008ed0
xor ecx, ecx
call fcn.140002f20
mov ecx, dword [0x140035198]
mov edx, dword [0x140033cbc]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x1400019f7
cmp ecx, edx
jg 0x140001d81
lea rcx, [0x140034f88]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x14000194c
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400018d1
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b93
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001dc2
lea rcx, [0x140034f88]
lea rdx, str.Uninstalling_service...
call fcn.140008ed0
call fcn.140004840
mov ecx, dword [0x140035198]
mov edx, dword [0x140033cbc]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001a15
cmp ecx, edx
jg 0x140001e03
lea rcx, [0x140034f88]
lea rdx, str.The_service_was_uninstalled_successfully
call fcn.140008ed0
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
xor esi, esi
cmp eax, dword [rcx + 4]
jle 0x140001a63
lea rcx, [0x140035198]
call fcn.14000b2f0
xor esi, esi
jmp 0x140001c7d
movaps xmm0, xmmword [0x14002a6d0]
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 0x1400019f0
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001ec6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.StartServiceCtrlDispatcher_failed.____d_
mov r8d, eax
call fcn.140008f50
xor esi, esi
jmp 0x140001a7f
cmp ecx, edx
jg 0x140001e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_upgrade_service.____d_
jmp 0x140001a31
cmp ecx, edx
jg 0x140001e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_uninstall_service.____d_
mov r8d, eax
call fcn.140008f50
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov esi, 1
cmp eax, dword [rcx + 4]
jg 0x140001c6c
mov rcx, qword [0x140034f88]
test rcx, rcx
je 0x140001a7f
call fcn.140012d50
mov qword [0x140034f88], 0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015cc0
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.140024350
test eax, eax
je 0x140001738
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.140024350
test eax, eax
je 0x140001738
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f07
lea rcx, [0x140034f88]
lea rdx, [rsp + 0x20]
call fcn.140008e40
jmp 0x140001738
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140024350
test eax, eax
je 0x140001825
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.140024350
test eax, eax
je 0x140001825
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f48
lea rcx, [0x140034f88]
lea rdx, [rsp + 0x20]
call fcn.140008e40
jmp 0x140001825
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140024350
test eax, eax
je 0x1400018d1
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.140024350
test eax, eax
je 0x1400018d1
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f89
lea rcx, [0x140034f88]
lea rdx, [rsp + 0x20]
call fcn.140008e40
jmp 0x1400018d1
lea rcx, [0x140035198]
call fcn.14000b2f0
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x140001cca
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x1400017c7
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x1400017c7
lea rcx, [0x140035198]
call fcn.14000b2f0
mov esi, 1
cmp dword [0x140035198], 0xffffffff
jne 0x140001a63
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001a63
lea rcx, [0x140035198]
call fcn.14000b2f0
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
cmp dword [0x140035198], 0xffffffff
jne 0x140001785
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001785
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x1400017e2
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x1400017e2
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x14000184a
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x14000184a
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x140001894
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001894
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x1400018f6
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x1400018f6
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x14000193e
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x14000193e
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x1400019ff
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x1400019ff
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x140001a1d
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001a1d
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x1400019d4
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x1400019d4
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x140001b02
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001b02
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x140001b7d
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001b7d
lea rcx, [0x140035198]
call fcn.14000b2f0
cmp dword [0x140035198], 0xffffffff
jne 0x140001bf8
mov qword [0x140034f88], 0
lea rcx, [0x140002700]
call fcn.14000b4a8
lea rcx, [0x140035198]
call fcn.14000b358
jmp 0x140001bf8