Function at 0x4015b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov edi, dword [ebp + 0xc]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.forceinstall
push dword [edi + 4]
call ebx
mov esi, eax
push 0x42c1c2
push dword [edi + 4]
call ebx
test eax, eax
je 0x401657
test esi, esi
je 0x401657
push 0x42c3a0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401722
push str.uninstall
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4017bc
mov esi, dword [ebp + 8]
push 0x42c088
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp esi, 3
jl 0x401890
test eax, eax
jne 0x401890
push 0
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.00407c20
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
jmp 0x401960
lea edi, [ebp - 0x21c]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40167e
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401977
mov eax, dword [0x431bbc]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x4329d8]
mov ecx, dword [ecx + 4]
test esi, esi
je 0x4016ae
cmp eax, ecx
jg 0x401aa9
xor esi, esi
inc esi
mov edi, str.Installing_service...
jmp 0x4016c0
cmp eax, ecx
jg 0x401b4c
mov esi, 2
mov edi, str.Installing_service_with_force_specified...
push edi
push 0x4327cc
call fcn.004085f0
add esp, 8
push esi
call fcn.00402c30
add esp, 4
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x4329d8]
mov edx, dword [edx + 4]
test eax, eax
je 0x401709
cmp ecx, edx
jg 0x401ac3
push str.The_service_was_installed_successfully
jmp 0x40184c
cmp ecx, edx
jg 0x401b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_install_service.____lu_
jmp 0x401913
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401749
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4019dd
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401bdc
push str.Upgrading_service_if_installed...
push 0x4327cc
call fcn.004085f0
add esp, 8
push 0
call fcn.00402c30
add esp, 4
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x4329d8]
mov edx, dword [edx + 4]
test eax, eax
je 0x4018e9
cmp ecx, edx
jg 0x401c1f
push str.The_service_was_upgraded_successfully
jmp 0x40184c
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4017e3
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401a43
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401c62
push str.Uninstalling_service...
push 0x4327cc
call fcn.004085f0
add esp, 8
call fcn.004043f0
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x4329d8]
mov edx, dword [edx + 4]
test eax, eax
je 0x4018ff
cmp ecx, edx
jg 0x401ca5
push str.The_service_was_uninstalled_successfully
push 0x4327cc
call fcn.004085f0
add esp, 8
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
xor ebx, ebx
cmp eax, dword [ecx + 4]
jle 0x401944
push 0x4329d8
call fcn.0040a577
add esp, 4
xor ebx, ebx
jmp 0x401b16
movups xmm0, xmmword [0x429a20]
lea eax, [ebp - 0x21c]
movups xmmword [eax], xmm0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4018e5
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartServiceCtrlDispatcher_failed.____lu_
push 0x4327cc
call fcn.004086e0
add esp, 0xc
xor ebx, ebx
jmp 0x401960
cmp ecx, edx
jg 0x401ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_upgrade_service.____lu_
jmp 0x401913
cmp ecx, edx
jg 0x401d2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_uninstall_service.____lu_
push 0x4327cc
call fcn.004086e0
add esp, 0xc
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401b06
xor ebx, ebx
inc ebx
mov eax, dword [0x4327cc]
test eax, eax
je 0x401960
push eax
call fcn.0041242f
add esp, 4
mov dword [0x4327cc], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af35
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
push str.logs
push edi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x40167e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_install.log
push edi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x40167e
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401db1
mov ecx, 0x4327cc
push edi
call fcn.00408580
jmp 0x40167e
push str.logs
push esi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x401749
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_install.log
push esi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x401749
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401df4
mov ecx, 0x4327cc
push esi
call fcn.00408580
jmp 0x401749
push str.logs
push esi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x4017e3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_uninstall.log
push esi
call fcn.00424f20
add esp, 8
test eax, eax
je 0x4017e3
mov eax, dword [0x4329d8]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401e37
mov ecx, 0x4327cc
push esi
call fcn.00408580
jmp 0x4017e3
push 0x4329d8
call fcn.0040a577
add esp, 4
xor esi, esi
inc esi
mov edi, str.Installing_service...
jmp 0x401b63
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x4016ff
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4016ff
push 0x4329d8
call fcn.0040a577
add esp, 4
xor ebx, ebx
inc ebx
cmp dword [0x4329d8], 0xffffffff
jne 0x401944
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401944
push 0x4329d8
call fcn.0040a577
add esp, 4
mov esi, 2
mov edi, str.Installing_service_with_force_specified...
cmp dword [0x4329d8], 0xffffffff
jne 0x4016c0
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4016c0
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401711
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401711
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x40176a
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x40176a
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x4017b2
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4017b2
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401804
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401804
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401847
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401847
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x4018f1
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4018f1
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401907
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401907
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x4018cc
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4018cc
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x4019cd
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x4019cd
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401a33
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401a33
push 0x4329d8
call fcn.0040a577
add esp, 4
cmp dword [0x4329d8], 0xffffffff
jne 0x401a99
mov dword [0x4327cc], 0
push 0x4024a0
call fcn.0040a73c
add esp, 4
push 0x4329d8
call fcn.0040a5c9
add esp, 4
jmp 0x401a99