Function at 0x482634
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x482905
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4828b5
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0047ebb4
test al, al
je 0x4826f6
lea edx, [ebp - 0x10]
mov al, 1
call fcn.0047f464
push dword [ebp - 0x10]
push 0x482920
push 0x48293c
push 0x48294c
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004044fc
push 1
mov ecx, dword [ebp - 0xc]
mov edx, 0x48295c
mov eax, 0x482968
call fcn.0047f29c
test al, al
jne 0x48276d
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040ba90
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x4cf194]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
jmp 0x48276d
lea edx, [ebp - 0x20]
mov al, 1
call fcn.0047f4d8
push dword [ebp - 0x20]
push 0x48297c
push 0x48293c
push 0x48294c
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004044fc
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x48295c
mov eax, 0x482990
call fcn.0047f29c
test al, al
jne 0x48276d
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x24]
call fcn.0040ba90
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x4cf194]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48289d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4827de
mov eax, 0x48293c
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x38]
call fcn.0040ba90
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea eax, [ebp - 0x34]
push eax
push 1
mov ecx, dword [0x4cefa0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
push 0
push 0
push 0
push 0
push 0x48299c
mov eax, dword [ebp - 0xc]
call fcn.0040463c
push eax
push 1
push 0
push 1
push 0xf01ff
push 0x4829a8
push 0x4829a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp dword [ebp - 8], 0
jne 0x482871
cmp ebx, 0x420
je 0x482871
cmp ebx, 0x431
je 0x482871
mov eax, 0x48293c
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0040ba90
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea eax, [ebp - 0x34]
push eax
push 1
mov ecx, dword [0x4cf2b4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4828a4
cmp dword [ebp - 8], 0
je 0x48288d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 4], 0
je 0x48289c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret