Function at 0x42f060
Capabilities:
Check os version
Copy file
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad565
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x124]
mov ebx, 0x114
push eax
mov edi, ecx
mov dword [ebp - 0x124], ebx
call esi
cmp dword [ebp - 0x120], 5
jne 0x42f0c0
cmp dword [ebp - 0x11c], 1
je 0x42f142
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], ebx
call esi
mov eax, dword [ebp - 0x120]
cmp eax, 6
ja 0x42f0e5
jne 0x42f0f7
cmp dword [ebp - 0x11c], 1
jb 0x42f0f7
call fcn.00404eb0
test al, al
jne 0x42f0f7
call fcn.00404f00
test al, al
je 0x42f142
lea esi, [ebp - 0x22c]
mov eax, edi
call fcn.00423e60
push 9
push str.BFDrv.sys
mov ebx, esi
mov dword [ebp - 4], 0xe
call fcn.00409220
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42f780
call fcn.00406470
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004950a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00402120
push 0x12
push str.driversBFDrv.sys
lea ebx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00409220
lea esi, [ebp - 0x22c]
mov eax, edi
call fcn.00423e60
push 9
push str.BFDrv.sys
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.00409220
mov edx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0x4e4f18
test eax, eax
jne 0x42f360
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x4bb830
lea eax, [ebp - 0x220]
push eax
mov ebx, 1
mov byte [ebp - 4], 2
call fcn.00402030
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x228]
push eax
push ecx
push esi
push str.BFDrv_CopyFile_from__s_to__s_Faild__d____n
lea edi, [ebp - 0x21c]
call fcn.00402360
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4e4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
push ebx
push ecx
push edi
push 0x4bb834
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x224]
call fcn.00402360
mov edi, dword [ebp - 0x224]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f2c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f2e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f30f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f32f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f358
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x42f78e
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4bb82c
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, 1
mov byte [ebp - 4], 5
call fcn.00402030
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x228]
push ecx
push esi
push str.BFDrv_CopyFile_from__s_to__s_is_OK
lea edi, [ebp - 0x220]
call fcn.00402360
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 0xc
call ebx
mov edx, dword [0x4e4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
push ecx
push edx
push edi
push 0x4bb834
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x224]
call fcn.00402360
mov edi, dword [ebp - 0x224]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f467
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f48d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x4e4f18]
test eax, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
jne 0x42f611
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov edx, 0x4bb830
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 8
call fcn.004020e0
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.BFDrv_DeleteFile__s_Faild__d____n
lea edi, [ebp - 0x224]
call fcn.00402360
add esp, 0xc
call ebx
mov edx, dword [0x4e4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
push ebx
push ecx
push edi
push 0x4bb834
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x220]
call fcn.00402360
mov edi, dword [ebp - 0x220]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5dc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f358
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x42f78e
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov edx, 0x4bb82c
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
call fcn.004020e0
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push esi
push str.BFDrv_DeleteFile__s_is_OK
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.00402360
add esp, 8
call ebx
mov edx, dword [0x4e4f18]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xd
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
push ebx
push ecx
push esi
push 0x4bb834
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x220]
call fcn.00402360
mov esi, dword [ebp - 0x220]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f6d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x228]
call fcn.0042efd0
mov edi, eax
call fcn.0042efd0
push eax
call fcn.00405910
push edi
call fcn.004913be
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f78c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret