Function at 0x4c9690
Capabilities:
Enumerate pe sections
Start service

Disassembly:
sub esp, 0xf0
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x100]
push edi
mov edi, dword [esp + 0x108]
push 0x202
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 0x80
call fcn.004c3b50
cmp dword [0x53f948], 0
mov ebp, eax
mov dword [esp + 0x14], ebp
mov byte [0x53f8e0], 0
jne 0x4c9c08
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x417148]
mov dword [esp + 0x2c], 0
lea ecx, [ecx]
cmp dword [0x5406c4], 0
jne 0x4c978d
cmp dword [0x53f944], 0
je 0x4c978d
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4c995d
push 0x10
push 0x42281c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4c99bd
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x4c9772
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4c99fb
mov eax, dword [0x417148]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [0x53f944], 0
cmp eax, 0xffffffff
jne 0x4c9842
cmp dword [0x5406c8], 0
je 0x4c98a4
mov eax, 1
mov dword [0x417148], eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 8
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0x82006800
push eax
mov dword [esp + 0x40], 0x81
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
je 0x4c9a5b
mov ax, word [esp + 0x24]
cmp ax, 4
jb 0x4c9b0a
mov edx, dword [0x417148]
push 0
lea eax, [esp + 0x34]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0x8200e808
push edx
mov dword [esp + 0x50], 0
call ebx
test eax, eax
je 0x4c9a8b
mov ax, word [esp + 0x24]
mov cx, word [esp + 0x26]
cmp ax, 6
ja 0x4c9abb
jne 0x4c983d
test cx, cx
ja 0x4c9abb
mov eax, dword [0x417148]
movzx ecx, word [esi + 4]
movzx edx, word [esi + 2]
push 0
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push ecx
push edi
push edx
push esi
push 0x8200e804
push eax
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
jne 0x4c9c2e
cmp dword [0x5406c8], eax
jne 0x4c9885
mov eax, dword [0x417148]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov dword [0x417148], eax
mov ecx, dword [esp + 0x2c]
inc ecx
cmp ecx, 3
mov dword [esp + 0x2c], ecx
jl 0x4c9700
jmp 0x4c9c2e
cmp dword [0x5406c4], 0
push 0
push 0
je 0x4c992a
push 0
push 0
push 0
push 0
push 0x42280c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x417148], eax
cmp eax, 0xffffffff
jne 0x4c97ad
push 0x462
call fcn.004c3b50
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov edi, eax
lea eax, [esp + 0x38]
push 0x4227f4
push eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x9c]
push 0x4227f0
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push 0x53f8e0
call fcn.004c3ad0
jmp 0x4c9b63
push 3
push 0
push 3
push 0xc0000000
push 0x4227e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x417148], eax
cmp eax, 0xffffffff
jne 0x4c97ad
mov dword [0x53f944], 1
jmp 0x4c988d
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x45c
call fcn.004c3b50
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea ecx, [esp + 0x38]
push 0x4227d4
push ecx
mov edi, eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x9c]
push 0x4227f0
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push 0x53f8e0
call fcn.004c3ad0
jmp 0x4c9b63
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x45d
call fcn.004c3b50
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea edx, [esp + 0x38]
push 0x4227bc
push edx
mov edi, eax
call esi
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push edi
push 0x53f8e0
call fcn.004c3aa0
jmp 0x4c9b63
push 0x462
call fcn.004c3b50
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x38]
push 0x4227a4
push edx
mov edi, eax
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x9c]
push 0x4227f0
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push 0x53f8e0
call fcn.004c3ad0
mov ebp, dword [esp + 0x14]
jmp 0x4c9b63
push 0x467
call fcn.004c3b50
push 0x42278c
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004c3aa0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x34]
push edx
push ebp
push 0x42277c
jmp 0x4c9b59
push 0x467
call fcn.004c3b50
push 0x42278c
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004c3aa0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x42277c
jmp 0x4c9b59
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx edx, cx
push edx
movzx eax, ax
push eax
lea ecx, [esp + 0xa0]
push 0x422770
push ecx
call esi
add esp, 0x10
push 0x469
call fcn.004c3b50
lea edx, [esp + 0x98]
push edx
push 0x42278c
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004c3ad0
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x422760
jmp 0x4c9b59
movzx edx, word [esp + 0x26]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
movzx eax, ax
push eax
lea ecx, [esp + 0xa0]
push 0x422770
push ecx
call esi
add esp, 0x10
push 0x468
call fcn.004c3b50
lea edx, [esp + 0x98]
push edx
push 0x42278c
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004c3ad0
lea ecx, [esp + 0x34]
push ecx
push ebp
push 0x422750
push 0x53f8e0
call esi
add esp, 0x10
mov eax, dword [0x417148]
cmp eax, 0xffffffff
je 0x4c9b74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x53f8e0], 0
mov dword [0x417148], 0xffffffff
jne 0x4c9bd9
push 0x45e
call fcn.004c3b50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x9c]
push 0x4227f0
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push 0x42278c
push edi
lea ecx, [esp + 0x40]
push ecx
call fcn.004c3ad0
lea edx, [esp + 0x34]
push edx
push ebp
push 0x422740
push 0x53f8e0
call esi
add esp, 0x10
cmp dword [0x416fd8], 0
jne 0x4c9c00
push 0x30
push 0x4224b4
push 0x53f8e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x53f948], 1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov cl, byte [esi + 6]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov byte [edi + 6], cl
mov cx, word [esp + 0x20]
mov eax, 0xc
mov byte [edi], 0xb2
mov byte [edi + 1], 0x80
mov word [edi + 2], ax
mov word [edi + 4], cx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0xf0
ret 8