Function at 0x10017cb0
Capabilities:
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021680
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.iSafeKrnlBoot.sys
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.10001b40
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x10017d1f
push dword [ebp - 0x14]
push str.iSafeKrnlBoot.sys
push str._Failed_to_find__s_from__s.
call fcn.10019db0
add esp, 0xc
xor esi, esi
jmp 0x10017f51
lea ecx, [ebp - 0x1c]
call fcn.100185f0
push str.iSafeKrnlBoot.sys
mov edx, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001b40
add esp, 4
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x10]
test eax, eax
sete bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017d8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10017dab
push dword [ebp - 0x14]
push str.iSafeKrnlBoot.sys
push str._Failed_to_copy__s_from__s.
call fcn.10019db0
add esp, 0xc
xor esi, esi
jmp 0x10017f51
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.10001020
test eax, eax
je 0x10017f41
push str.system32DRIVERS_
lea ecx, [ebp - 0x10]
call fcn.100019d0
push str.iSafeKrnlBoot.sys
mov edx, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.10001b40
add esp, 4
push 0
push 3
push 1
push str.Boot_Bus_Extender
push str.YAC_Boot_Driver
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x24]
push str.iSafeKrnlBoot
call fcn.10001610
test eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
sete bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017e35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x10017f41
push str.SYSTEMCurrentControlSetControl_
lea ecx, [ebp - 0x18]
call fcn.100019d0
push str.iSafeKrnlBoot
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.10001af0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
sub esp, 0x14
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10018ff0
test eax, eax
jne 0x10017efb
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.10001f10
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 7
mov eax, dword [esi - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.10018cd0
cmp ax, 0x5c
jne 0x10017edf
mov eax, dword [esi - 0xc]
push ecx
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.10018ba0
mov esi, dword [ebp - 0x10]
push 1
push esi
push str.ProgramPath
lea ecx, [ebp - 0x30]
call fcn.100022d0
lea ecx, [ebp - 0x10]
test eax, eax
je 0x10017f2d
call fcn.10001a80
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10017f09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017f43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10017f43
call fcn.10001a80
lea ecx, [ebp - 0x30]
call fcn.10002400
mov esi, 1
jmp 0x10017f0b
xor esi, esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10017f51
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10017f72
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret