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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba195
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4f52c0]
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 0x42f97c
cmp dword [ebp - 0x11c], 1
je 0x42f9f1
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], ebx
call esi
cmp dword [ebp - 0x120], 6
jne 0x42f9a6
cmp dword [ebp - 0x11c], 1
jne 0x42f9a6
call fcn.00404680
test al, al
je 0x42f9f1
lea esi, [ebp - 0x22c]
mov eax, edi
call fcn.004238c0
push 9
push str.BFDrv.sys
mov ebx, esi
mov dword [ebp - 4], 0xe
call fcn.00406d60
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 0x43002f
call fcn.0041bc00
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0049dad0
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.00401d40
push 0x12
push str.driversBFDrv.sys
lea ebx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00406d60
lea esi, [ebp - 0x22c]
mov eax, edi
call fcn.004238c0
push 9
push str.BFDrv.sys
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.00406d60
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, 0x4f4f18
test eax, eax
jne 0x42fc0f
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x4ca4a0
lea eax, [ebp - 0x220]
push eax
mov ebx, 1
mov byte [ebp - 4], 2
call fcn.00401c50
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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.00401f80
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4f4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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 0x4ca4a4
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x224]
call fcn.00401f80
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 0x42fb78
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 0x42fb98
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 0x42fbbe
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 0x42fbde
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 0x42fc07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x43003d
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4ca49c
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, 1
mov byte [ebp - 4], 5
call fcn.00401c50
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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.00401f80
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 0xc
call ebx
mov edx, dword [0x4f4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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 0x4ca4a4
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x224]
call fcn.00401f80
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 0x42fcf0
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 0x42fd16
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 0x42fd3c
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 [0x4f4f18]
test eax, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
jne 0x42fec0
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov edx, 0x4ca4a0
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 8
call fcn.00401d00
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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.00401f80
add esp, 0xc
call ebx
mov edx, dword [0x4f4f18]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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 0x4ca4a4
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x220]
call fcn.00401f80
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 0x42fe25
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 0x42fe45
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 0x42fe6b
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 0x42fe8b
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 0x42fc07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x43003d
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov edx, 0x4ca49c
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
call fcn.00401d00
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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.00401f80
add esp, 8
call ebx
mov edx, dword [0x4f4f18]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
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 0x4ca4a4
push str.__s___TID:_u____s____s__n
lea edi, [ebp - 0x220]
call fcn.00401f80
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 0x42ff85
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 0x42ffa5
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 0x42ffcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x228]
call fcn.0042f890
mov edi, eax
call fcn.0042f890
push eax
call fcn.0041b0a0
push edi
call fcn.0049a88f
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 0x430012
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 0x43003b
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.0049908b
mov esp, ebp
pop ebp
ret