Function at 0x413889
Capabilities:
Check if file exists
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4390f6
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x118], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x1b9]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x234], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x110]
call fcn.00402ad2
mov dword [ebp - 4], 1
push str.DoInstall.cpp
lea ecx, [ebp - 0x48]
call fcn.00408211
mov byte [ebp - 4], 2
push dword [ebp - 0x114]
push str.OpenSCManager___create__dwErr_d
lea eax, [ebp - 0x2c]
push eax
call fcn.00419558
add esp, 0xc
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 3
push 1
push dword [ebp - 0x23c]
push 3
push 0x5e9
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x44621c
call fcn.0041952f
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402ad2
mov byte [ebp - 4], 2
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402ad2
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 0
je 0x413f80
push 0
push 0x26
lea eax, [ebp - 0x188]
push eax
call fcn.0041aee6
add esp, 0xc
mov byte [ebp - 4], 6
push 0x43b782
lea ecx, [ebp - 0x1a8]
call fcn.00408211
mov byte [ebp - 4], 7
push 0x43bb1c
lea ecx, [ebp - 0x134]
call fcn.00408e1f
mov byte [ebp - 4], 8
push 0x43bb1c
lea ecx, [ebp - 0x16c]
call fcn.00408e1f
mov byte [ebp - 4], 9
push str.Nox_Limited_Service
lea ecx, [ebp - 0x150]
call fcn.00408e1f
mov byte [ebp - 4], 0xa
mov byte [ebp - 0x189], 0
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408632
pop ecx
pop ecx
mov dword [ebp - 0x240], 0x43bb18
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x240]
mov al, byte [eax]
mov byte [ebp - 0x245], al
inc dword [ebp - 0x240]
cmp byte [ebp - 0x245], 0
jne 0x413a34
mov eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x244]
mov dword [ebp - 0x24c], eax
push dword [ebp - 0x24c]
push 0x43bb18
push 2
push 1
lea ecx, [ebp - 0x1a8]
call fcn.00416775
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.00408591
pop ecx
pop ecx
push dword [0x43b6a8]
push 0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00407683
mov dword [ebp - 0x250], 0x43ba2c
mov eax, dword [ebp - 0x250]
add eax, 2
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x250]
mov ax, word [eax]
mov word [ebp - 0x256], ax
add dword [ebp - 0x250], 2
cmp word [ebp - 0x256], 0
jne 0x413ac5
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
sar eax, 1
mov dword [ebp - 0x25c], eax
push dword [ebp - 0x25c]
push 0x43ba2c
lea ecx, [ebp - 0x134]
call fcn.004073b3
mov dword [ebp - 0x260], str.YSDrv
mov eax, dword [ebp - 0x260]
add eax, 2
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x260]
mov ax, word [eax]
mov word [ebp - 0x266], ax
add dword [ebp - 0x260], 2
cmp word [ebp - 0x266], 0
jne 0x413b29
mov eax, dword [ebp - 0x260]
sub eax, dword [ebp - 0x264]
sar eax, 1
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
push str.YSDrv
lea ecx, [ebp - 0x134]
call fcn.004073b3
mov dword [ebp - 0x270], str..sys
mov eax, dword [ebp - 0x270]
add eax, 2
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x270]
mov ax, word [eax]
mov word [ebp - 0x276], ax
add dword [ebp - 0x270], 2
cmp word [ebp - 0x276], 0
jne 0x413b8d
mov eax, dword [ebp - 0x270]
sub eax, dword [ebp - 0x274]
sar eax, 1
mov dword [ebp - 0x27c], eax
push dword [ebp - 0x27c]
push str..sys
lea ecx, [ebp - 0x134]
call fcn.004073b3
lea ecx, [ebp - 0x134]
call fcn.00416ddb
mov dword [ebp - 0x1fc], eax
push dword [ebp - 0x1fc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x413f0f
lea ecx, [ebp - 0x134]
call fcn.00416ddb
mov dword [ebp - 0x200], eax
lea ecx, [ebp - 0x150]
call fcn.00416ddb
mov dword [ebp - 0x204], eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x200]
push 1
push 1
push 1
push 4
push dword [ebp - 0x204]
push str.YSDrv
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
push str.DoInstall.cpp
lea ecx, [ebp - 0x80]
call fcn.00408211
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x150]
call fcn.00416ddb
mov dword [ebp - 0x214], eax
push dword [ebp - 0x114]
push dword [ebp - 0x214]
push str.create__S_result__d_n
lea eax, [ebp - 0x64]
push eax
call fcn.00419558
add esp, 0x10
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 0xc
push 1
push dword [ebp - 0x284]
push 3
push 0x609
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x44621c
call fcn.0041952f
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00402ad2
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00402ad2
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x1ac], 0
je 0x413d1c
push dword [ebp - 0x1ac]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
and dword [ebp - 0xf4], 0
jmp 0x413f0f
cmp dword [ebp - 0x114], 0x431
je 0x413d34
cmp dword [ebp - 0x114], 0xb7
jne 0x413d40
and dword [ebp - 0xf4], 0
jmp 0x413f0f
cmp dword [ebp - 0x114], 0x436
jne 0x413e6c
movzx eax, byte [ebp - 0x189]
test eax, eax
je 0x413d6c
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xf4], eax
jmp 0x413e67
push str.DoInstall.cpp
lea ecx, [ebp - 0xb8]
call fcn.00408211
mov byte [ebp - 4], 0xf
push str.ERROR_DUPLICATE_SERVICE_NAME_n
lea eax, [ebp - 0x9c]
push eax
call fcn.00419558
pop ecx
pop ecx
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 0x10
push 1
push dword [ebp - 0x28c]
push 3
push 0x61b
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0x44621c
call fcn.0041952f
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.00402ad2
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.00402ad2
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x290], 0x43c908
mov eax, dword [ebp - 0x290]
add eax, 2
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x290]
mov ax, word [eax]
mov word [ebp - 0x296], ax
add dword [ebp - 0x290], 2
cmp word [ebp - 0x296], 0
jne 0x413e10
mov eax, dword [ebp - 0x290]
sub eax, dword [ebp - 0x294]
sar eax, 1
mov dword [ebp - 0x29c], eax
push dword [ebp - 0x29c]
push 0x43c908
lea ecx, [ebp - 0x150]
call fcn.004073b3
mov byte [ebp - 0x189], 1
jmp 0x413bfe
jmp 0x413f0f
push str.DoInstall.cpp
lea ecx, [ebp - 0xf0]
call fcn.00408211
mov byte [ebp - 4], 0x13
push 0x43bb64
push dword [ebp - 0x114]
push str.CreateService_failed__dwErr_d_szDriver_s_n
lea eax, [ebp - 0xd4]
push eax
call fcn.00419558
add esp, 0x10
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 0x14
push 1
push dword [ebp - 0x2a4]
push 3
push 0x623
lea eax, [ebp - 0xf0]
push eax
mov ecx, 0x44621c
call fcn.0041952f
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.00402ad2
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.00402ad2
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xf4], eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 0x17
push 0
push 1
lea ecx, [ebp - 0x150]
call fcn.004050af
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0x18
push 0
push 1
lea ecx, [ebp - 0x16c]
call fcn.004050af
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0x19
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.004050af
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a8]
call fcn.00402765
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00404d88
jmp 0x413f8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x1b0], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00402765
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c438
leave
ret