Function at 0x401ce0
Capabilities:
Copy file
Create service
Get common file path
Start service

Disassembly:
sub esp, 0x424
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x41c], eax
mov edx, dword [0x49ec78]
mov eax, dword [str.Estdlock]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [0x49ec74]
push 0x1f6
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
mov eax, dword [0x49ec7c]
mov dword [esp + 0x20], ecx
mov cx, word [0x49ec80]
lea edx, [esp + 0x2e]
push 0
push edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
call fcn.004661f0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x401d77
jmp 0x401d60
dec esi
mov eax, 0x5c
cmp ax, word [ebx + esi*2]
je 0x401d72
test esi, esi
jne 0x401d60
jmp 0x401d77
test esi, esi
jbe 0x401d77
inc esi
push 0x208
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebx + esi*2]
push edi
call ebp
lea edx, [esp + 0x220]
push edx
mov esi, eax
call ebp
lea eax, [esi + eax + 0xa]
cmp eax, 0x104
jl 0x401db6
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401f15
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Drivers_
lea ecx, [esp + 0x224]
push ecx
call esi
push edi
lea edx, [esp + 0x224]
push edx
call esi
lea esi, [esp + 0x220]
call fcn.00401a70
test eax, eax
je 0x401df2
push 0
mov eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x401e1b
push str.install_driver_and_start_service:_oen_scm_error
call fcn.00405010
add esp, 4
xor eax, eax
jmp 0x401f15
push str.System32Drivers_
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x234]
push eax
push 1
push 1
push 1
push 0xf01ff
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x401ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x431
je 0x401e8e
push str.install_driver_and_start_service:_Create_Service_error
call fcn.00405010
add esp, 4
jmp 0x401f03
lea ebx, [esp + 0x18]
call fcn.00401b20
test eax, eax
je 0x401ea0
call fcn.00401c10
push 0xf003f
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.install_driver_and_start_service:_Open_Service_error
mov edi, eax
call fcn.00405010
add esp, 4
jmp 0x401f03
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
jne 0x401f2e
call fcn.00402140
xor edi, edi
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x424
ret
push str.install_driver_and_start_service:_start_service_error
call fcn.00405010
add esp, 4
jmp 0x401efc