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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], ecx
push eax
push eax
xor ecx, ecx
mov byte [ebp - 4], al
inc ecx
push ecx
push eax
push eax
push eax
push str..SMARTVSD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40e1c8
push 0x104
push 8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push 0x104
push 8
mov ebx, eax
call edi
push eax
call esi
mov edi, eax
test ebx, ebx
je 0x40e1ad
test edi, edi
je 0x40e19d
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push ebx
call esi
push 0x104
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push ebx
call esi
push str.IOSUBSYSSMARTVSD.VXD
push edi
call esi
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40e1c1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x40e2fe
push 0x21
push 8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push 0x210
push 8
mov ebx, eax
call edi
push eax
call esi
mov esi, eax
test ebx, ebx
je 0x40e2e2
test esi, esi
je 0x40e2d6
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
test cl, cl
jne 0x40e2d0
push 8
pop ecx
xor eax, eax
and dword [ebp - 0x10], 0
mov edi, ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x210
push edi
push 0
push esi
call fcn.0043bad0
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [ebx + 0xc], al
xor ecx, ecx
xor eax, eax
mov dword [ebx], 0x200
mov byte [ebx + 4], al
inc ecx
push eax
lea eax, [ebp - 0x10]
mov byte [ebx + 5], cl
push eax
push edi
push esi
push 0x20
push ebx
push 0x7c088
push dword [ebp - 0xc]
mov byte [ebx + 6], cl
mov dword [ebx + 7], 0xeca00000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40e2bd
push 0xa
lea edx, [esi + 0x25]
pop edi
mov cl, byte [edx - 1]
mov al, byte [edx]
mov byte [edx - 1], al
mov byte [edx], cl
lea edx, [edx + 2]
sub edi, 1
jne 0x40e268
push 0x31
push edi
mov edi, dword [ebp - 0x14]
push edi
call fcn.0043bad0
push 0x14
lea eax, [esi + 0x24]
push eax
push edi
call fcn.0043cf20
add esp, 0x18
mov ecx, edi
call fcn.0040e9a1
movsx ax, byte [edi]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
mov ecx, dword [ebp - 4]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [ebp - 4], ecx
jmp 0x40e2c0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x10
jl 0x40e1fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x40e2f2
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret