Function at 0x4cdd70
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7cc
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str._check_and_copy_driver_file_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x31f]
push ebx
push eax
mov byte [ebp - 0x320], bl
call fcn.004e7d90
add esp, 0x14
push 0x104
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x320]
push 0x5c
push edx
call fcn.004e50f0
mov byte [eax], bl
push 0x103
lea eax, [ebp - 0x73f]
push ebx
push eax
mov byte [ebp - 0x740], bl
call fcn.004e7d90
mov ecx, dword [0x53b4b8]
mov edx, dword [ecx*4 + 0x5335e4]
push edx
push str.Smrf
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x740]
push str._s_s.inf_s
push ecx
call fcn.004e5066
add esp, 0x28
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
lea edx, [ebp - 0x740]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4ce3bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x218]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cde80
mov edx, dword [str.System32drivers_]
mov ecx, dword [0x529438]
mov dword [eax], edx
mov edx, dword [0x52943c]
mov dword [eax + 4], ecx
mov ecx, dword [0x529440]
mov dword [eax + 8], edx
mov dx, word [0x529444]
mov dword [eax + 0xc], ecx
mov cl, byte [0x529446]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
mov eax, str.Smrf
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4cdec6
lea edi, [ebp - 0x218]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4cded8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cdef5
mov edx, dword [str..inf]
mov cl, byte [0x52944c]
mov dword [eax], edx
push 0x80
lea edx, [ebp - 0x218]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x740]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x4cdf47
push str._inf_copy_fail_
jmp 0x4ce3b2
push str._inf_copy_success_
push str.Driver
call fcn.004a5390
push 0x103
lea edx, [ebp - 0x52f]
push ebx
push edx
mov byte [ebp - 0x530], bl
call fcn.004e7d90
mov eax, dword [0x53b4b8]
mov ecx, dword [eax*4 + 0x5335e4]
push ecx
push str.Smrf
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x530]
push str._s_s.sys_s
push eax
call fcn.004e5066
add esp, 0x28
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
lea ecx, [ebp - 0x530]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ce3bf
lea edx, [ebp - 0x794]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea eax, [ebp - 0x760]
push eax
lea ecx, [ebp - 0x780]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce020
mov ecx, dword [str.System32drivers_]
mov edx, dword [0x529438]
mov dword [eax], ecx
mov ecx, dword [0x52943c]
mov dword [eax + 4], edx
mov edx, dword [0x529440]
mov dword [eax + 8], ecx
mov cx, word [0x529444]
mov dword [eax + 0xc], edx
mov dl, byte [0x529446]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
mov eax, str.Smrf
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4ce066
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4ce078
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x110]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce095
mov ecx, dword [str..sys]
mov dl, byte [0x5294c0]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
mov dword [eax], ecx
push 1
mov byte [eax + 4], dl
push ebx
lea eax, [ebp - 0x110]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ce101
push ebx
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x530]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x4ce0f7
push str._sys_copy_fail_
jmp 0x4ce3b2
push str._sys_copy_success_
jmp 0x4ce1b2
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea ecx, [ebp - 0x750]
push ecx
lea edx, [ebp - 0x7b4]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x750]
movzx ecx, word [ebp - 0x760]
cmp ecx, eax
jne 0x4ce16e
movzx eax, word [ebp - 0x74e]
movzx edx, word [ebp - 0x74a]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*2]
movzx ecx, word [ebp - 0x75e]
mov edx, ecx
shl edx, 4
sub edx, ecx
movzx ecx, word [ebp - 0x75a]
lea ecx, [ecx + edx*2]
cmp ecx, eax
jle 0x4ce3a9
push 0x80
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x530]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x4ce1ad
push str._sys_overwrite_fail_
jmp 0x4ce3b2
push str._sys_overwrite_success_
push str.Driver
call fcn.004a5390
add esp, 8
push 0x103
lea edx, [ebp - 0x637]
push ebx
push edx
mov byte [ebp - 0x638], bl
call fcn.004e7d90
mov eax, dword [0x53b4b8]
mov ecx, dword [eax*4 + 0x5335e4]
push ecx
push str.Smrf
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x638]
push str._s_s.cat_s
push eax
call fcn.004e5066
add esp, 0x20
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
lea ecx, [ebp - 0x638]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4ce27e
mov eax, dword [0x53b4b8]
cmp eax, 0xd
je 0x4ce274
cmp eax, 0xc
je 0x4ce274
cmp eax, 0xb
je 0x4ce274
cmp eax, 0xa
je 0x4ce274
cmp eax, 9
je 0x4ce274
cmp eax, 8
je 0x4ce274
cmp eax, 7
je 0x4ce274
cmp eax, 6
je 0x4ce274
push str._os_is_not_need_cat_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push str._need_cat__but_source_not_exists_
jmp 0x4ce3ae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea edx, [ebp - 0x427]
push ebx
push edx
mov byte [ebp - 0x428], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x428]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce2c0
mov ecx, dword [str.System32drivers_]
mov edx, dword [0x529438]
mov dword [eax], ecx
mov ecx, dword [0x52943c]
mov dword [eax + 4], edx
mov edx, dword [0x529440]
mov dword [eax + 8], ecx
mov cx, word [0x529444]
mov dword [eax + 0xc], edx
mov dl, byte [0x529446]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
mov eax, str.Smrf
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4ce306
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4ce318
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x428]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce335
mov ecx, dword [str..cat]
mov dl, byte [0x529674]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x638]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x4ce384
push str._cat_copy_fail_
jmp 0x4ce3b2
push str._cat_copy_success_
push str.Driver
call fcn.004a5390
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push str._sys_not_need_overwrite_
xor edx, edx
xor ecx, ecx
push str.Driver
call fcn.004a5390
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret