Function at 0x42cd70
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004097f0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
call fcn.004177e0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push str.KChannel::UpdateDriverFile_srcFile:_ws
push 0x46afbc
call fcn.00420980
add esp, 0xc
mov dword [ebp - 0x2c], str.kisknl64.sys
mov dword [ebp - 0x28], str.dgsafe64.sys
mov dword [ebp - 0x24], str.dgsafe64_ev.sys
mov dword [ebp - 0x20], str.ksapi64_ev.sys
mov dword [ebp - 0x1c], str.kisknl.sys
mov dword [ebp - 0x18], str.dgsafe.sys
mov dword [ebp - 0x14], str.dgsafe_ev.sys
mov dword [ebp - 0x10], str.ksapi_ev.sys
mov dword [ebp - 0x40], 0
jmp 0x42ce2d
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 4
jae 0x42cf35
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + edx*4 - 0x2c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041d690
test eax, eax
jne 0x42cf30
call fcn.00417710
test eax, eax
je 0x42cf23
push str.dgsafe64_ev.sys
lea ecx, [ebp - 0x38]
push ecx
call fcn.00406c40
add esp, 8
movzx edx, al
test edx, edx
je 0x42ce8f
call fcn.0042d1d0
test eax, eax
je 0x42ce8f
push str.dgsafe.sys
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42cf21
push str.dgsafe64.sys
lea eax, [ebp - 0x38]
push eax
call fcn.00406c40
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42cebf
call fcn.0042d1d0
test eax, eax
jne 0x42cebf
push str.dgsafe.sys
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42cf21
push str.ksapi64_ev.sys
lea edx, [ebp - 0x38]
push edx
call fcn.00406c40
add esp, 8
movzx eax, al
test eax, eax
je 0x42ceef
call fcn.0042d1d0
test eax, eax
je 0x42ceef
push str.ksapi64.sys
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42cf21
push str.kisknl64.sys
lea ecx, [ebp - 0x38]
push ecx
call fcn.00406c40
add esp, 8
movzx edx, al
test edx, edx
je 0x42cf19
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + eax*4 - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42cf21
lea ecx, [ebp - 0x38]
call fcn.00401210
jmp 0x42cf2b
lea ecx, [ebp - 0x38]
call fcn.00401210
jmp 0x42d029
jmp 0x42ce24
call fcn.00417710
test eax, eax
je 0x42cf7e
mov dword [ebp - 0x44], 0
jmp 0x42cf50
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 4
jae 0x42cf79
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + eax*4 - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041d690
test eax, eax
jne 0x42cf77
lea ecx, [ebp - 0x38]
call fcn.00401210
jmp 0x42d029
jmp 0x42cf47
jmp 0x42d029
mov dword [ebp - 0x48], 0
jmp 0x42cf90
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 4
jae 0x42d029
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + eax*4 - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041d690
test eax, eax
jne 0x42d024
push str.dgsafe_ev.sys
lea edx, [ebp - 0x38]
push edx
call fcn.00406c40
add esp, 8
movzx eax, al
test eax, eax
je 0x42cfea
call fcn.0042d1d0
test eax, eax
je 0x42cfde
push str.dgsafe.sys
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42cfe6
lea ecx, [ebp - 0x38]
call fcn.00401210
jmp 0x42d029
push str.ksapi_ev.sys
lea ecx, [ebp - 0x38]
push ecx
call fcn.00406c40
add esp, 8
movzx edx, al
test edx, edx
je 0x42d024
call fcn.0042d1d0
test eax, eax
je 0x42d01a
push str.ksapi.sys
lea ecx, [ebp - 0x38]
call fcn.004010a0
jmp 0x42d022
lea ecx, [ebp - 0x38]
call fcn.00401210
jmp 0x42d029
jmp 0x42cf87
lea ecx, [ebp - 0x38]
call fcn.00403440
movzx eax, al
test eax, eax
jne 0x42d18e
mov dword [ebp - 0x4c], 0
call fcn.00417710
test eax, eax
je 0x42d056
push 0
call fcn.00418160
add esp, 4
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x50]
call fcn.00401080
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.0040f280
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x54]
call fcn.00401080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
call fcn.00417710
test eax, eax
je 0x42d0d9
push 1
call fcn.00418160
add esp, 4
cmp dword [ebp - 0x3c], 0
jne 0x42d0e8
mov dword [ebp - 0x70], 0x45ab5c
jmp 0x42d0ef
mov dword [ebp - 0x70], 0x45aaa4
mov edx, dword [ebp - 0x70]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
push edx
push 0x45aa84
call fcn.00421e50
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00401080
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push str.KChannel::UpdateDriverFile_return:_d__error:_d__path:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401080
cmp dword [ebp - 0x3c], 0
jne 0x42d18e
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], edx
jmp 0x42d195
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401080
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4