Function at 0x407a30
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bc51
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a8]
mov esi, dword [esp + 0x2ac]
mov dword [esp + 0x28], edi
call fcn.0040f911
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407a97
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2a0], 0
call fcn.0040f911
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407acc
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
push 0x104
lea ecx, [esp + 0x194]
push ecx
mov byte [esp + 0x2a8], 1
mov byte [esp + 0x1f], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x407b62
push str.Error_:_Get_windows_path_error_n
call fcn.00404820
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x2a0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x407ed5
cmp dword [esp + 0x2b0], 0
mov dword [esp + 0x24], 0
jbe 0x407e7b
lea ecx, [esi + 0x40]
mov ebp, esi
add esi, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
jmp 0x407b90
test edi, edi
mov byte [esp + 0x16], 0
jne 0x407b9d
xor eax, eax
jmp 0x407bad
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407ba2
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00402cd0
push 1
push 0x42f3dc
lea ecx, [esp + 0x24]
call fcn.00402e20
test ebp, ebp
jne 0x407bd0
xor eax, eax
jmp 0x407be0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407bd5
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00402e20
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407c15
push esi
push str.Info__:_fail_to_find_files___s__n
call fcn.00404820
add esp, 8
jmp 0x407e4c
mov edi, str.usbser.sys
xor esi, esi
lea esp, [esp]
push edi
push ebp
call fcn.00419352
add esp, 8
test eax, eax
je 0x407c44
add esi, 0x1cc
add edi, 0x1cc
cmp esi, 0x1cc
jb 0x407c20
jmp 0x407c57
push ebp
push str.Info__:_find_system_driver_files___s__not_Over_write_n
call fcn.00404820
add esp, 8
mov byte [esp + 0x16], 1
lea eax, [esp + 0x190]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407c76
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403630
mov esi, dword [esp + 0x18]
mov edi, 0x42f7a0
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x2a0], 2
jne 0x407cbd
cmp byte [esp + 0x17], 1
jne 0x407cbd
mov eax, 1
jmp 0x407cbf
xor eax, eax
test eax, eax
mov dword [ebp + 0x1c0], eax
je 0x407cd2
push 9
push str._system32
jmp 0x407d08
mov esi, dword [esp + 0x20]
mov eax, esi
lea edx, [eax + 1]
jmp 0x407ce0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407ce0
sub eax, edx
je 0x407d01
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407cf2
sub eax, edx
push eax
push esi
jmp 0x407d08
push 0x11
push str._system32drivers
lea ecx, [esp + 0x3c]
call fcn.00403ad0
push 1
push 0x42f3dc
lea ecx, [esp + 0x3c]
call fcn.00403ad0
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407d28
sub eax, edx
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403ad0
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jae 0x407d58
lea eax, [esp + 0x38]
movzx ecx, byte [esp + 0x16]
mov esi, dword [esp + 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x407dac
cmp byte [esp + 0x16], al
push esi
je 0x407d7c
push str.info:system_driver___s__is_already_exist._n
jmp 0x407d81
push str.Error_:_Copy__file___s__error._n
call fcn.00404820
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x2a0], 1
jb 0x407e33
mov edx, dword [esp + 0x38]
push edx
jmp 0x407e2b
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x407dba
lea eax, [esp + 0x38]
push eax
push ebp
push str.Info__:_Copy_file__s__to___s__OK._n
call fcn.00404820
mov esi, dword [esp + 0x24]
add esp, 0xc
mov edi, 0x42f7a0
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407deb
cmp byte [esp + 0x17], 1
jne 0x407deb
mov eax, 1
jmp 0x407ded
xor eax, eax
test eax, eax
mov dword [ebp + 0x1c0], eax
je 0x407e10
sub dword [esp + 0x24], 1
mov eax, 0x1cc
sub dword [esp + 0x20], eax
sub ebp, eax
sub dword [esp + 0x18], eax
mov byte [esp + 0x17], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0x2a0], 1
jb 0x407e33
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040f57f
add esp, 4
mov edi, dword [esp + 0x28]
mov byte [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov eax, dword [esp + 0x24]
mov ecx, 0x1cc
add dword [esp + 0x20], ecx
add dword [esp + 0x18], ecx
add eax, 1
add ebp, ecx
cmp eax, dword [esp + 0x2b0]
mov dword [esp + 0x24], eax
jb 0x407b90
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
push str.Info__:_Copy_file_exit._n
call fcn.00404820
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x2a0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041811d
add esp, 0x290
ret