Function at 0x430328
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
call fcn.00404868
xor eax, eax
push ebp
push 0x430574
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x430379
call fcn.0040de1c
xor eax, eax
push ebp
push 0x430547
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00408420
test al, al
jne 0x43039c
call fcn.00403e1c
jmp 0x43054e
test ebx, ebx
je 0x4303b6
push edi
push 0x430590
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404738
jmp 0x4303c0
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00404474
cmp byte [ebp + 0xc], 0
je 0x4303cd
mov edi, 0x110
jmp 0x4303d2
mov edi, 0x10
push 0xf01ff
mov eax, esi
call fcn.00404878
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x430529
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x430449
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x18]
call fcn.00404878
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404878
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404878
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 5]
jmp 0x430487
mov eax, dword [ebp - 4]
call fcn.00404878
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x18]
call fcn.00404878
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404878
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ChangeServiceConfigA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x430512
cmp dword [ebp + 0x1c], 0
je 0x430512
mov dl, 1
mov eax, dword [0x41bf3c]
call fcn.0041c094
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x43050b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0041c170
lea eax, [ebp - 0x1c]
mov ecx, esi
mov edx, 0x43059c
call fcn.004046c4
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.0041c224
mov ecx, dword [ebp + 0x1c]
mov edx, 0x4305c8
mov eax, dword [ebp - 0x18]
call fcn.0041c41c
mov eax, dword [ebp - 0x18]
call fcn.0041c128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430512
mov eax, dword [ebp - 0x18]
call fcn.004036a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430530
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43057b
lea eax, [ebp - 0x1c]
call fcn.004043dc
lea eax, [ebp - 0x14]
call fcn.004043dc
lea eax, [ebp + 0x18]
call fcn.004043dc
ret