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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
push 0
push 0
xor bl, bl
push str..SMARTVSD
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4cce0e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
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 0x4ccded
test edi, edi
je 0x4ccdd7
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]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x4ccdf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x4cce05
push edi
push 0
call esi
push eax
call ebx
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 esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push 0x210
push 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test edi, edi
je 0x4ccf42
test esi, esi
je 0x4ccf2e
mov ecx, dword [ebp - 4]
xor ebx, ebx
nop dword [eax]
test cl, cl
jne 0x4ccf2b
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
push 0x210
movups xmmword [edi], xmm0
push 0
movups xmmword [edi + 0x10], xmm0
push esi
mov byte [edi + 0x20], cl
call fcn.004d9fe0
add esp, 0xc
mov dword [edi], 0x200
lea eax, [ebp - 0xc]
mov byte [edi + 0xc], bl
mov dword [edi + 4], 0x10100
mov word [edi + 8], 0xa000
push 0
push eax
push 0x210
push esi
push 0x20
push edi
push 0x7c088
push dword [ebp - 8]
mov byte [edi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ccf1e
lea eax, [esi + 0x24]
mov esi, 0xa
mov dword [ebp - 0x10], eax
inc eax
mov dl, byte [eax - 1]
lea eax, [eax + 2]
mov cl, byte [eax - 2]
mov byte [eax - 3], cl
mov byte [eax - 2], dl
sub esi, 1
jne 0x4ccec3
push dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004d9fe0
push 0x14
push dword [ebp - 0x10]
push esi
call fcn.004d8ee0
push esi
call fcn.004cd0d0
movsx ax, byte [esi]
add esp, 0x1c
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
mov ecx, dword [ebp - 4]
test eax, eax
mov esi, dword [ebp - 0x14]
mov eax, 1
movzx ecx, cl
cmovne ecx, eax
mov dword [ebp - 4], ecx
jmp 0x4ccf21
mov ecx, dword [ebp - 4]
inc ebx
cmp ebx, 0x10
jl 0x4cce50
mov ebx, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ccf48
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x4ccf58
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret