Function at 0x401e13
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.00402c0f
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 0x406246
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004019c9
add esp, 8
cmp eax, 0
jne 0x401e73
mov eax, 0
jmp 0x402318
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040232c
and eax, 1
xor eax, 1
test eax, eax
je 0x401e96
mov eax, 0
jmp 0x402318
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 6
mov ebx, 0xc8
call fcn.00403a10
add esp, 0x4c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401f1f
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f36
mov eax, 0
jmp 0x402318
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 9
mov ebx, 0xc8
call fcn.00403a10
add esp, 0x70
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401fe1
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40201a
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402010
push 6
call fcn.00402c15
add esp, 4
mov eax, 0
jmp 0x402318
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push 4
push dword [ebp - 8]
xor eax, eax
call dword [0x414c7a]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402044
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4020b9
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 4
jne 0x4020b4
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402088
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4020aa
push 6
call fcn.00402c15
add esp, 4
mov eax, 1
jmp 0x402318
jmp 0x4021c2
mov dword [ebp - 0x14], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4020d8
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x426
je 0x40213b
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40210a
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40212c
push 6
call fcn.00402c15
add esp, 4
mov eax, 0
jmp 0x402318
mov dword [ebp - 0x14], esp
push 0
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402167
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4021c2
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402196
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4021b8
push 6
call fcn.00402c15
add esp, 4
mov eax, 0
jmp 0x402318
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xa
jg 0x4022a3
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push 4
push dword [ebp - 8]
xor eax, eax
call dword [0x414c7a]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402203
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402263
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402232
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x402254
push 6
call fcn.00402c15
add esp, 4
mov eax, 0
jmp 0x402318
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 4
jne 0x40227d
jmp 0x4022a3
push 0x80000301
push 0
push 0xfa0
push 1
mov ebx, 0x67c
call fcn.00403a30
add esp, 0x10
pop ebx
pop ecx
inc ecx
jmp 0x4021cc
add esp, 8
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4022c8
push 6
call fcn.00402c15
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4022ea
push 6
call fcn.00402c15
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 4
jne 0x40230e
mov eax, 1
jmp 0x402318
mov eax, 0
jmp 0x402318
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00402c03
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8