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 [0x42e00c]
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 0x429ba0
push dword [edi + 4]
call ebx
test esi, esi
je 0x401657
test eax, eax
je 0x401657
push 0x429d7e
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40171a
push str.uninstall
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4017b4
mov esi, dword [ebp + 8]
push str.check_cert
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp esi, 3
jl 0x40187e
test eax, eax
jne 0x40187e
push 0
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.00407d60
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
jmp 0x40194e
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 0x401965
mov eax, dword [0x42ea44]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x42f78c]
mov ecx, dword [ecx + 4]
test esi, esi
je 0x4016a6
xor esi, esi
inc esi
mov edi, str.Installing_service...
jmp 0x4016b0
mov esi, 2
mov edi, str.Installing_service_with_force_specified...
cmp eax, ecx
jg 0x401ada
push edi
push 0x42f580
call fcn.00408770
add esp, 8
push esi
call fcn.00402c60
add esp, 4
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x42f78c]
mov edx, dword [edx + 4]
test eax, eax
je 0x401701
cmp ecx, edx
jg 0x401b1d
push str.The_service_was_installed_successfully
jmp 0x401844
cmp ecx, edx
jg 0x401ba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_install_service.____d_
jmp 0x401901
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401741
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4019cb
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401be6
push str.Upgrading_service_if_installed...
push 0x42f580
call fcn.00408770
add esp, 8
push 0
call fcn.00402c60
add esp, 4
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x42f78c]
mov edx, dword [edx + 4]
test eax, eax
je 0x4018d7
cmp ecx, edx
jg 0x401c29
push str.The_service_was_upgraded_successfully
jmp 0x401844
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4017db
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401a31
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401c6c
push str.Uninstalling_service...
push 0x42f580
call fcn.00408770
add esp, 8
call fcn.00404410
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x42f78c]
mov edx, dword [edx + 4]
test eax, eax
je 0x4018ed
cmp ecx, edx
jg 0x401caf
push str.The_service_was_uninstalled_successfully
push 0x42f580
call fcn.00408770
add esp, 8
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401a97
mov eax, dword [0x42f580]
xor ebx, ebx
jmp 0x401937
movups xmm0, xmmword [0x4273d0]
lea eax, [ebp - 0x21c]
movups xmmword [eax], xmm0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4018d3
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartServiceCtrlDispatcher_failed.____d_
push 0x42f580
call fcn.004087d0
add esp, 0xc
xor ebx, ebx
jmp 0x40194e
cmp ecx, edx
jg 0x401cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_upgrade_service.____d_
jmp 0x401901
cmp ecx, edx
jg 0x401d35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_uninstall_service.____d_
push 0x42f580
call fcn.004087d0
add esp, 0xc
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401b60
mov eax, dword [0x42f580]
xor ebx, ebx
inc ebx
test eax, eax
je 0x40194e
push eax
call fcn.004120eb
add esp, 4
mov dword [0x42f580], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040add1
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
push str.logs
push edi
call fcn.00423980
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.00423980
add esp, 8
test eax, eax
je 0x40167e
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401dbb
mov ecx, 0x42f580
push edi
call fcn.00408700
jmp 0x40167e
push str.logs
push esi
call fcn.00423980
add esp, 8
test eax, eax
je 0x401741
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_install.log
push esi
call fcn.00423980
add esp, 8
test eax, eax
je 0x401741
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401dfe
mov ecx, 0x42f580
push esi
call fcn.00408700
jmp 0x401741
push str.logs
push esi
call fcn.00423980
add esp, 8
test eax, eax
je 0x4017db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_uninstall.log
push esi
call fcn.00423980
add esp, 8
test eax, eax
je 0x4017db
mov eax, dword [0x42f78c]
mov ecx, dword [0x42ea44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401e41
mov ecx, 0x42f580
push esi
call fcn.00408700
jmp 0x4017db
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x401872
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x401872
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4016b8
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4016b8
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4016f7
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4016f7
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x40192f
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x40192f
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x401709
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x401709
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x401762
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x401762
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4017aa
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4017aa
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4017fc
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4017fc
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x40183f
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x40183f
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4018df
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4018df
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4018f5
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4018f5
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4018ba
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4018ba
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x4019bb
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x4019bb
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x401a21
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x401a21
push 0x42f78c
call fcn.0040a6d7
add esp, 4
cmp dword [0x42f78c], 0xffffffff
jne 0x401a87
mov dword [0x42f580], 0
push 0x4024f0
call fcn.0040a94c
add esp, 4
push 0x42f78c
call fcn.0040a729
add esp, 4
jmp 0x401a87