Function at 0x1400016d0
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, [0x140030f92]
call rbx
test eax, eax
je 0x14000178e
test esi, esi
je 0x14000178e
mov rcx, qword [rdi + 8]
lea rdx, [0x140031170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000187b
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001927
mov rcx, qword [rdi + 8]
lea rdx, [0x140030e58]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ebp, 3
jl 0x140001a0b
test eax, eax
jne 0x140001a0b
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.140008420
xor esi, esi
test eax, eax
sete sil
jmp 0x140001aff
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400017b8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b1d
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test esi, esi
je 0x1400017f1
cmp eax, ecx
jg 0x140001c8e
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x140001805
cmp eax, ecx
jg 0x140001d32
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
lea rcx, [0x14003a118]
mov rdx, rdi
call fcn.140008ee0
mov ecx, esi
call fcn.140002fa0
mov ecx, dword [0x14003a328]
mov edx, dword [0x140038d6c]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x14000185a
cmp ecx, edx
jg 0x140001cab
lea rcx, [0x14003a118]
lea rdx, str.The_service_was_installed_successfully
jmp 0x1400019cc
cmp ecx, edx
jg 0x140001d7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_install_service.____lu_
jmp 0x140001ab1
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400018a5
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b98
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001dc0
lea rcx, [0x14003a118]
lea rdx, str.Upgrading_service_if_installed...
call fcn.140008ee0
xor ecx, ecx
call fcn.140002fa0
mov ecx, dword [0x14003a328]
mov edx, dword [0x140038d6c]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001a77
cmp ecx, edx
jg 0x140001e01
lea rcx, [0x14003a118]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x1400019cc
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001951
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001c13
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001e42
lea rcx, [0x14003a118]
lea rdx, str.Uninstalling_service...
call fcn.140008ee0
call fcn.1400048d0
mov ecx, dword [0x14003a328]
mov edx, dword [0x140038d6c]
mov rbp, qword gs:[0x58]
mov rdx, qword [rbp + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001a95
cmp ecx, edx
jg 0x140001e83
lea rcx, [0x14003a118]
lea rdx, str.The_service_was_uninstalled_successfully
call fcn.140008ee0
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
xor esi, esi
cmp eax, dword [rcx + 4]
jle 0x140001ae3
lea rcx, [0x14003a328]
call fcn.14000b3c0
xor esi, esi
jmp 0x140001cfd
movaps xmm0, xmmword [0x14002e750]
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 0x140001a70
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.StartServiceCtrlDispatcher_failed.____lu_
mov r8d, eax
call fcn.140008ff0
xor esi, esi
jmp 0x140001aff
cmp ecx, edx
jg 0x140001ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_upgrade_service.____lu_
jmp 0x140001ab1
cmp ecx, edx
jg 0x140001f05
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_uninstall_service.____lu_
mov r8d, eax
call fcn.140008ff0
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov esi, 1
cmp eax, dword [rcx + 4]
jg 0x140001cec
mov rcx, qword [0x14003a118]
test rcx, rcx
je 0x140001aff
call fcn.140013618
mov qword [0x14003a118], 0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140016cb0
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.140028000
test eax, eax
je 0x1400017b8
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.140028000
test eax, eax
je 0x1400017b8
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f87
lea rcx, [0x14003a118]
lea rdx, [rsp + 0x20]
call fcn.140008e50
jmp 0x1400017b8
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140028000
test eax, eax
je 0x1400018a5
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.140028000
test eax, eax
je 0x1400018a5
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001fc8
lea rcx, [0x14003a118]
lea rdx, [rsp + 0x20]
call fcn.140008e50
jmp 0x1400018a5
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call fcn.140028000
test eax, eax
je 0x140001951
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.140028000
test eax, eax
je 0x140001951
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140002009
lea rcx, [0x14003a118]
lea rdx, [rsp + 0x20]
call fcn.140008e50
jmp 0x140001951
lea rcx, [0x14003a328]
call fcn.14000b3c0
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x140001d4a
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001847
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001847
lea rcx, [0x14003a328]
call fcn.14000b3c0
mov esi, 1
cmp dword [0x14003a328], 0xffffffff
jne 0x140001ae3
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001ae3
lea rcx, [0x14003a328]
call fcn.14000b3c0
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
cmp dword [0x14003a328], 0xffffffff
jne 0x140001805
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001805
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001862
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001862
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x1400018ca
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x1400018ca
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001914
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001914
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001976
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001976
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x1400019be
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x1400019be
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001a7f
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001a7f
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001a9d
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001a9d
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001a54
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001a54
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001b82
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001b82
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001bfd
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001bfd
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140001c78
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140001c78