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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
push 0
push 0
push 1
push 0
push 0
push 0
push str..SMARTVSD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4af71b
push 0x104
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
push 0x104
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x4af6e2
cmp dword [ebp - 0x1c], 0
je 0x4af6e2
push 0x104
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.SMARTVSD.VXD
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.IOSUBSYSSMARTVSD.VXD
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x18], 0
je 0x4af6fb
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1c], 0
je 0x4af714
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x4af8c6
push 0x21
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
push 0x210
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
je 0x4af887
cmp dword [ebp - 4], 0
je 0x4af887
mov dword [ebp - 0x10], 0
jmp 0x4af76c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x10
jge 0x4af887
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x4af887
push 0x21
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x20], 0
push 0x210
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00445020
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x200
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0xc], dl
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 5], 1
mov edx, dword [ebp - 0xc]
mov byte [edx + 6], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 7], 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 0xc]
mov byte [edx + 9], 0xa0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xa], 0xec
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x210
mov edx, dword [ebp - 4]
push edx
push 0x20
mov eax, dword [ebp - 0xc]
push eax
push 0x7c088
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4af81c
jmp 0x4af763
mov edx, dword [ebp - 4]
add edx, 0x10
mov dword [ebp - 0x24], edx
push 0x14
mov eax, dword [ebp - 0x24]
add eax, 0x14
push eax
call fcn.004af5c0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00445020
add esp, 0xc
push 0x14
mov eax, dword [ebp - 0x24]
add eax, 0x14
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00447f00
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.004ae9e0
add esp, 4
mov eax, dword [ebp + 8]
movsx cx, byte [eax]
movzx edx, cx
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x4af882
mov byte [ebp - 0x11], 1
jmp 0x4af763
cmp dword [ebp - 0xc], 0
je 0x4af8a0
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x4af8b9
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret