Function at 0x140001670
Capabilities:
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [rdx + 8]
lea rdx, str.forceinstall
mov r14, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
call r14
mov esi, eax
mov rcx, qword [rdi + 8]
lea rdx, [0x14002f642]
call r14
test eax, eax
je 0x140001731
test esi, esi
je 0x140001731
mov rcx, qword [rdi + 8]
lea rdx, [0x14002f820]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000181d
mov rcx, qword [rdi + 8]
lea rdx, str.uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400018c8
mov rcx, qword [rdi + 8]
lea rdx, [0x14002f508]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ebx, 3
jl 0x1400019ab
test eax, eax
jne 0x1400019ab
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
call fcn.1400083d0
xor esi, esi
test eax, eax
sete sil
jmp 0x140001a9f
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000175b
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001abe
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test esi, esi
je 0x140001794
cmp eax, ecx
jg 0x140001c2f
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x1400017a8
cmp eax, ecx
jg 0x140001cd3
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
lea rcx, [0x140038230]
mov rdx, rdi
call fcn.140008f00
mov ecx, esi
call fcn.140002f40
mov ecx, dword [0x140038440]
mov edx, dword [0x140036e78]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x1400017fc
cmp ecx, edx
jg 0x140001c4c
lea rcx, [0x140038230]
lea rdx, str.The_service_was_installed_successfully
jmp 0x14000196c
cmp ecx, edx
jg 0x140001d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038230]
lea rdx, str.Could_not_install_service.____lu_
jmp 0x140001a51
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001847
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b39
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001d61
lea rcx, [0x140038230]
lea rdx, str.Upgrading_service_if_installed...
call fcn.140008f00
xor ecx, ecx
call fcn.140002f40
mov ecx, dword [0x140038440]
mov edx, dword [0x140036e78]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001a17
cmp ecx, edx
jg 0x140001da2
lea rcx, [0x140038230]
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x14000196c
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400018f2
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001bb4
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001de3
lea rcx, [0x140038230]
lea rdx, str.Uninstalling_service...
call fcn.140008f00
call fcn.140004870
mov ecx, dword [0x140038440]
mov edx, dword [0x140036e78]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140001a35
cmp ecx, edx
jg 0x140001e24
lea rcx, [0x140038230]
lea rdx, str.The_service_was_uninstalled_successfully
call fcn.140008f00
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
xor esi, esi
cmp eax, dword [rcx + 4]
jle 0x140001a83
lea rcx, [0x140038440]
call fcn.14000b2c0
xor esi, esi
jmp 0x140001c9e
movaps xmm0, xmmword [0x14002ce80]
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 0x140001a10
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001ee7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038230]
lea rdx, str.StartServiceCtrlDispatcher_failed.____lu_
mov r8d, eax
call fcn.140009010
xor esi, esi
jmp 0x140001a9f
cmp ecx, edx
jg 0x140001e65
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038230]
lea rdx, str.Could_not_upgrade_service.____lu_
jmp 0x140001a51
cmp ecx, edx
jg 0x140001ea6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140038230]
lea rdx, str.Could_not_uninstall_service.____lu_
mov r8d, eax
call fcn.140009010
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov esi, 1
cmp eax, dword [rcx + 4]
jg 0x140001c8d
mov rcx, qword [0x140038230]
test rcx, rcx
je 0x140001a9f
call fcn.140012d48
mov qword [0x140038230], 0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018ef0
mov eax, esi
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.140026480
test eax, eax
je 0x14000175b
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.140026480
test eax, eax
je 0x14000175b
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f28
lea rcx, [0x140038230]
lea rdx, [rsp + 0x20]
call fcn.140008e70
jmp 0x14000175b
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.140026480
test eax, eax
je 0x140001847
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.140026480
test eax, eax
je 0x140001847
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001f69
lea rcx, [0x140038230]
lea rdx, [rsp + 0x20]
call fcn.140008e70
jmp 0x140001847
lea rdx, str.logs
lea rcx, [rsp + 0x20]
call int.140026480
test eax, eax
je 0x1400018f2
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.140026480
test eax, eax
je 0x1400018f2
mov eax, dword [0x140038440]
mov ecx, dword [0x140036e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001faa
lea rcx, [0x140038230]
lea rdx, [rsp + 0x20]
call fcn.140008e70
jmp 0x1400018f2
lea rcx, [0x140038440]
call fcn.14000b2c0
mov esi, 1
lea rdi, str.Installing_service...
jmp 0x140001ceb
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x1400017e9
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x1400017e9
lea rcx, [0x140038440]
call fcn.14000b2c0
mov esi, 1
cmp dword [0x140038440], 0xffffffff
jne 0x140001a83
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001a83
lea rcx, [0x140038440]
call fcn.14000b2c0
mov esi, 2
lea rdi, str.Installing_service_with_force_specified...
cmp dword [0x140038440], 0xffffffff
jne 0x1400017a8
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x1400017a8
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001804
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001804
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x14000186c
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x14000186c
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x1400018b5
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x1400018b5
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001917
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001917
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x14000195e
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x14000195e
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001a1f
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001a1f
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001a3d
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001a3d
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x1400019f4
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x1400019f4
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001b23
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001b23
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001b9e
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001b9e
lea rcx, [0x140038440]
call fcn.14000b2c0
cmp dword [0x140038440], 0xffffffff
jne 0x140001c19
mov qword [0x140038230], 0
lea rcx, [0x140002720]
call fcn.14000b458
lea rcx, [0x140038440]
call fcn.14000b328
jmp 0x140001c19