Function at 0x412210
Capabilities:
Print debug messages
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b380
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x44aba4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040d9b0
mov dword [esp + 0x28], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x50], ebx
call fcn.00411770
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov eax, edi
lea esi, [esp + 0x28]
call fcn.00413920
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x28]
je 0x41229c
lea edx, [esp + 0x24]
cmp eax, edx
je 0x4122a1
call fcn.004208da
cmp dword [esp + 0x20], esi
jne 0x412337
push 0x440d84
lea ecx, [esp + 0x1c]
call fcn.0040de10
mov byte [esp + 0x48], 1
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x1c]
push 0x4432d8
push ecx
call fcn.00415760
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x2c]
push ecx
mov edi, esi
call fcn.00414790
mov edx, dword [esp + 0x28]
push edx
call fcn.00415b75
mov al, 1
jmp 0x4124f8
push 2
push ebx
push ebx
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jbe 0x4123b1
mov eax, dword [edi]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
jbe 0x4123a0
mov dword [esp + 0x18], ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x412394
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x412394
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 5
mov dword [esp + 0x18], eax
jle 0x412368
jmp 0x412399
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [esp + 0x17], bl
jne 0x41240b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.00413140
mov byte [esp + 0x48], 2
mov ecx, dword [eax]
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ecx
push edx
push 0x443300
push eax
call fcn.00415760
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4124c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4124c6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040d9b0
mov dword [esp + 0x34], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 8], eax
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
mov byte [esp + 0x50], 3
call fcn.00411770
add esp, 8
lea edx, [esp + 0x1c]
push edx
mov eax, edi
lea esi, [esp + 0x34]
call fcn.00413920
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x34]
je 0x412472
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x412477
call fcn.004208da
cmp dword [esp + 0x20], esi
jne 0x412495
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push edx
push 0x443328
push eax
call fcn.00415760
add esp, 0xc
mov byte [esp + 0x17], bl
mov byte [esp + 0x48], bl
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
push esi
lea eax, [esp + 0x34]
push eax
mov edx, eax
push ecx
push edx
lea edx, [esp + 0x2c]
push edx
mov edi, eax
call fcn.00414790
mov eax, dword [esp + 0x34]
push eax
call fcn.00415b75
add esp, 4
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x2c]
push ecx
mov edi, esi
call fcn.00414790
mov edx, dword [esp + 0x28]
push edx
call fcn.00415b75
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret