Function at 0x40bbb4
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov edi, 0x413aac
xor eax, eax
push ebp
push 0x40c039
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x413b60]
call fcn.00403bf8
push dword [ebp - 0xc]
push 0x40c054
push 0x40c064
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403ea0
mov edx, 0x412428
mov eax, dword [ebp - 8]
mov ecx, 0xb
call fcn.00402a0c
lea eax, [ebp - 8]
mov ecx, 0x40c064
mov edx, dword [ebp - 0xc]
call fcn.00403e2c
mov edx, 0x412440
mov eax, dword [ebp - 8]
mov ecx, 7
call fcn.00402a0c
lea eax, [ebp - 8]
mov ecx, 0x40c064
mov edx, dword [ebp - 0xc]
call fcn.00403e2c
mov edx, 0x412434
mov eax, dword [ebp - 8]
mov ecx, 7
call fcn.00402a0c
push 0x40c068
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0xc
lea eax, [ebp - 0x14]
mov edx, 0x412428
mov ecx, 0xb
call fcn.00403c50
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x40c08c
call fcn.00403e2c
mov eax, dword [ebp - 0x10]
call fcn.00403fe0
push eax
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0xc
lea eax, [ebp - 0x1c]
mov edx, 0x41243c
mov ecx, 0xb
call fcn.00403c50
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x40c0bc
call fcn.00403e2c
mov eax, dword [ebp - 0x18]
call fcn.00403fe0
push eax
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0xc
lea eax, [ebp - 0x24]
mov edx, 0x412434
mov ecx, 7
call fcn.00403c50
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x40c0ec
call fcn.00403e2c
mov eax, dword [ebp - 0x20]
call fcn.00403fe0
push eax
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0xc
call fcn.0040b9ec
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.00402c70
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x28]
call fcn.00403da8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x138]
mov edx, 0x412428
mov ecx, 0xb
call fcn.00402ca0
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x12c]
call fcn.00403da8
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403de8
mov edx, dword [ebp - 0x28]
mov eax, edi
call fcn.00403bb4
mov eax, dword [edi]
call fcn.00405dfc
mov eax, 0x4139c4
mov edx, 0x65
call fcn.00404e74
mov eax, 0x4138c4
mov edx, pe_nt_image_headers32
call fcn.00404e74
mov eax, dword [edi]
call fcn.00403fe0
mov ecx, eax
mov eax, 0x40c118
mov edx, 0xa
call fcn.0040b978
test eax, eax
jne 0x40bdd3
or ebx, 0xffffffff
jmp 0x40c013
lea eax, [ebp - 8]
mov edx, dword [edi]
call fcn.00403bf8
mov eax, dword [ebp - 8]
call fcn.00405dec
test al, al
jne 0x40bdf3
mov ebx, 0xfffffffc
jmp 0x40c013
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00403fe0
mov esi, eax
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40be26
mov ebx, 0xfffffff9
jmp 0x40c013
mov ecx, dword [ebp - 0xc]
mov edx, 0x998
mov eax, ebx
call fcn.0040ae10
mov ecx, dword [ebp - 0xc]
mov edx, 0x9c0
mov eax, ebx
call fcn.0040ae10
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
call fcn.0040b7a4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40be65
mov ebx, 0xfffffff8
jmp 0x40c013
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40be8e
mov ebx, 0xfffffff7
jmp 0x40c013
mov ecx, dword [ebp - 4]
mov edx, 0x2a0
mov eax, ebx
call fcn.0040ade4
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [edi]
call fcn.00403de0
mov ecx, eax
mov edx, 0x4138c4
mov eax, dword [edi]
call fcn.00402a0c
mov eax, dword [0x413a50]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40becd
mov dword [ebp - 4], 0x80e8
mov eax, dword [ebp - 4]
push eax
push 0x40c120
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0x10
pushal
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
test eax, eax
je 0x40bfbb
mov dword [0x413a30], eax
push 0
push 0
push 0
push 0
push 0
push 0x4138c4
push 0
push 3
push 1
push 0xf01ff
push 0x412434
push 0x412428
push dword [0x413a30]
call sub.advapi32.dll_CreateServiceA
test eax, eax
je 0x40bf98
mov dword [0x413a38], eax
push 0
push 0
push eax
call sub.advapi32.dll_StartServiceA
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x41243c
call sub.kernel32.dll_CreateFileA
mov dword [0x413a40], eax
mov dword [0x4139c4], 0x686f6f6b
mov eax, dword [ebp - 4]
mov dword [0x4139c8], eax
push 0
push 0x413b58
push pe_nt_image_headers32
push 0x4139c4
push pe_nt_image_headers32
push 0x4139c4
push 0x20
push dword [0x413a40]
call sub.kernel32.dll_DeviceIoControl
jmp 0x40bfbb
push 0xf003f
push 0x412428
push dword [0x413a30]
call sub.advapi32.dll_OpenServiceA
test eax, eax
je 0x40bfbb
mov dword [0x413a38], eax
jmp 0x40bf33
popal
cmp dword [0x413a30], 0
jbe 0x40c007
cmp dword [0x413a38], 0
jbe 0x40c007
cmp dword [0x413a40], 0
jbe 0x40c007
cmp dword [0x413a30], 0xffffffff
jae 0x40c007
cmp dword [0x413a38], 0xffffffff
jae 0x40c007
cmp dword [0x413a40], 0xffffffff
jae 0x40c007
xor ebx, ebx
push 0x40c13c
push 0xffffffffffffffff
push 0
call sub.OllyDbg.exe__Addtolist
add esp, 0xc
jmp 0x40c00c
mov ebx, 0xfffffffd
mov eax, dword [edi]
call fcn.00405dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c040
lea eax, [ebp - 0x12c]
call fcn.00403b60
lea eax, [ebp - 0x28]
mov edx, 9
call fcn.00403b84
ret