Function at 0x401000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43300c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.forceinstall
push dword [edi + 4]
call ebx
mov esi, eax
push 0x42dbda
push dword [edi + 4]
call ebx
test esi, esi
je 0x4010a7
test eax, eax
je 0x4010a7
push 0x42ddb8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401150
push str.uninstall
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4011e9
mov esi, dword [ebp + 8]
push str.check_cert
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp esi, 3
jl 0x4012ba
test eax, eax
jne 0x4012ba
push 0
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.0040be90
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
jmp 0x401778
lea edi, [ebp - 0x21c]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4010ce
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40132c
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401564
xor ebx, ebx
test esi, esi
mov eax, str.Installing_service_with_force_specified...
mov ecx, str.Installing_service...
cmove ecx, eax
sete bl
inc ebx
push ecx
push 0x434588
call fcn.0040c830
add esp, 8
push ebx
call fcn.00402c00
add esp, 4
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4015a7
test esi, esi
je 0x4015ed
push str.The_service_was_installed_successfully
jmp 0x401278
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401177
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4013d3
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4015fe
push str.Upgrading_service_if_installed...
push 0x434588
call fcn.0040c830
add esp, 8
push 0
call fcn.00402c00
add esp, 4
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401641
test esi, esi
je 0x401687
push str.The_service_was_upgraded_successfully
jmp 0x401278
lea esi, [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401210
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40147a
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401698
push str.Uninstalling_service...
push 0x434588
call fcn.0040c830
add esp, 8
call fcn.00404270
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4016db
test esi, esi
je 0x401721
push str.The_service_was_uninstalled_successfully
push 0x434588
call fcn.0040c830
add esp, 8
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401521
mov eax, dword [0x434588]
xor ebx, ebx
test eax, eax
jne 0x401765
jmp 0x401778
movsd xmm0, qword [0x42b3e8]
movsd xmm1, qword [0x42b3e0]
lea eax, [ebp - 0x21c]
movsd qword [ebp - 0x214], xmm0
movsd qword [ebp - 0x21c], xmm1
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x401325
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4017cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartServiceCtrlDispatcher_failed.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x401778
push str.logs
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x4010ce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_install.log
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x4010ce
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40180e
cmp dword [0x434588], 0
jne 0x4010ce
push edi
call fcn.00416b42
add esp, 4
dec eax
cmp eax, 0x101
ja 0x4010ce
push 0x104
push edi
push 0x43458c
call fcn.00416fbb
add esp, 0xc
push 0x42da8e
push 0x43458c
call fcn.00415354
add esp, 8
mov dword [0x434588], eax
jmp 0x4010ce
push str.logs
push esi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x401177
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_install.log
push esi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x401177
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40185e
cmp dword [0x434588], 0
jne 0x401177
push esi
call fcn.00416b42
add esp, 4
dec eax
cmp eax, 0x101
ja 0x401177
push 0x104
push esi
push 0x43458c
call fcn.00416fbb
add esp, 0xc
push 0x42da8e
push 0x43458c
call fcn.00415354
add esp, 8
mov dword [0x434588], eax
jmp 0x401177
push str.logs
push esi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x401210
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.maintenanceservice_uninstall.log
push esi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x401210
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4018ae
cmp dword [0x434588], 0
jne 0x401210
push esi
call fcn.00416b42
add esp, 4
dec eax
cmp eax, 0x101
ja 0x401210
push 0x104
push esi
push 0x43458c
call fcn.00416fbb
add esp, 0xc
push 0x42da8e
push 0x43458c
call fcn.00415354
add esp, 8
mov dword [0x434588], eax
jmp 0x401210
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4012a6
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4012a6
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4010ef
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4010ef
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40113e
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
test esi, esi
jne 0x401146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_install_service.____d_
jmp 0x40172d
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x401198
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x401198
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4011d7
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
test esi, esi
jne 0x4011df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_upgrade_service.____d_
jmp 0x40172d
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x401231
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x401231
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40126b
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
test esi, esi
jne 0x401273
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_uninstall_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40178f
mov eax, dword [0x434588]
mov ebx, 1
test eax, eax
je 0x401778
push eax
call fcn.0041543f
add esp, 4
mov dword [0x434588], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x401757
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x401757
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40130c
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40130c
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x401382
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
cmp dword [0x434588], 0
jne 0x4010ce
jmp 0x40138f
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x401429
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
cmp dword [0x434588], 0
jne 0x401177
jmp 0x401436
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4014d0
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
cmp dword [0x434588], 0
jne 0x401210
jmp 0x4014dd