Function at 0x40c1f0
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
add esp, 0xffffff70
mov dword [ebp - 4], 1
mov ecx, 0x55be7a
call fcn.0051a674
xor eax, eax
mov byte [ebp - 0x21], al
xor ecx, ecx
mov byte [ebp - 0x22], cl
xor edx, edx
mov byte [ebp - 0x23], dl
movzx eax, byte [ebp - 0x21]
push eax
movzx ecx, byte [ebp - 0x22]
push ecx
movzx edx, byte [ebp - 0x23]
push edx
lea ecx, [ebp - 0xa0]
call fcn.00413880
mov ecx, eax
call fcn.0040cdf0
mov dword [ebp - 0x40], eax
push 0x544084
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040f600
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040f600
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.0040fee0
lea ecx, [ebp - 0x28]
call fcn.004100c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c2ed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040fee0
mov byte [ebp - 4], 0
lea ecx, [ebx + 8]
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
call fcn.0040fee0
jmp 0x40c421
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40c331
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040fee0
mov byte [ebp - 4], 0
lea ecx, [ebx + 8]
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
call fcn.0040fee0
jmp 0x40c421
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00410000
lea ecx, [ebp - 0x28]
call fcn.004100c0
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x30]
call fcn.004100c0
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x30]
call fcn.004100c0
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
push 1
push 2
push 0x110
push 0xf01ff
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40c3d0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x30]
call fcn.0040fee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040fee0
mov byte [ebp - 4], 0
lea ecx, [ebx + 8]
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
call fcn.0040fee0
jmp 0x40c421
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x30]
call fcn.0040fee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040fee0
mov byte [ebp - 4], 0
lea ecx, [ebx + 8]
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
call fcn.0040fee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret