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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str..SMARTVSD
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x478ccf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x104
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
mov dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
je 0x478cb6
cmp eax, ebx
je 0x478ca9
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push dword [ebp - 8]
call esi
push str.IOSUBSYSSMARTVSD.VXD
push dword [ebp - 0xc]
call esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x478cc8
push dword [ebp - 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x478e01
push 0x21
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0x210
push 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov dword [ebp - 8], eax
cmp esi, ebx
je 0x478ddf
cmp eax, ebx
je 0x478dd0
mov dword [ebp - 0xc], ebx
cmp byte [ebp - 1], bl
jne 0x478dd0
push 8
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x210
push edi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
call fcn.004a63e0
mov al, byte [ebp - 0xc]
add esp, 0xc
push ebx
mov byte [esi + 0xc], al
lea eax, [ebp - 0x18]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push 0x20
push esi
push 0x7c088
push dword [ebp - 0x14]
mov dword [esi], 0x200
mov dword [esi + 4], 0x10100
mov word [esi + 8], 0xa000
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x478dc3
add edi, 0x24
lea eax, [edi + 1]
mov dword [ebp - 0x10], 0xa
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec dword [ebp - 0x10]
jne 0x478d7b
push 0x31
push ebx
push dword [ebp + 8]
call fcn.004a63e0
push 0x14
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004a5a30
push edi
call fcn.004794b8
movsx ax, byte [edi]
movzx eax, ax
add esp, 0x1c
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x478dc3
mov byte [ebp - 1], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jl 0x478d0a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x478df5
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret