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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 - 0xc], eax
cmp eax, 0xffffffff
jne 0x4495b2
push 0x104
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0x104
push 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov edi, eax
cmp esi, ebx
je 0x449596
cmp edi, ebx
je 0x449587
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.SMARTVSD.VXD
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.IOSUBSYSSMARTVSD.VXD
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x4495a9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
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 edi, eax
cmp esi, ebx
je 0x4496d0
cmp edi, ebx
je 0x4496c1
mov dword [ebp - 8], ebx
lea esp, [esp]
cmp byte [ebp - 1], bl
jne 0x4496c1
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x210
mov dword [esi + 0x18], eax
push ebx
mov dword [esi + 0x1c], eax
push edi
mov byte [esi + 0x20], al
mov dword [ebp - 0x10], ebx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 8]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0x210
push edi
push 0x20
push esi
push 0x7c088
push edx
mov dword [esi], 0x200
mov byte [esi + 0xc], al
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 0x4496b1
lea eax, [edi + 0x25]
mov edx, 0xa
mov cl, byte [eax - 1]
mov bl, byte [eax]
mov byte [eax - 1], bl
mov byte [eax], cl
add eax, 2
dec edx
jne 0x449668
mov ebx, dword [ebp + 8]
push 0x31
push edx
push ebx
call sub.MSVCR100.dll_memset
push 0x14
lea eax, [edi + 0x24]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
call fcn.00449f40
movsx ax, byte [ebx]
movzx ecx, ax
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
xor ebx, ebx
test eax, eax
je 0x4496b1
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x10
jl 0x4495f0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x4496e3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret