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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str..SMARTVSD
mov byte [esp + 0x2f], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x43c51d
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 ebp, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
cmp ebp, ebx
je 0x43c502
cmp eax, ebx
je 0x43c4f7
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push ebp
call esi
push str.IOSUBSYSSMARTVSD.VXD
push dword [esp + 0x18]
call esi
push ebx
push dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x14], ebx
je 0x43c516
push dword [esp + 0x14]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x43c65b
push 0x21
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
mov edi, 0x210
push edi
push 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ebp, eax
cmp esi, ebx
je 0x43c63a
cmp ebp, ebx
je 0x43c62b
mov dword [esp + 0x14], ebx
cmp byte [esp + 0x13], bl
jne 0x43c62b
push 0x21
push ebx
push esi
call fcn.0049d740
push edi
push ebx
push ebp
mov dword [esp + 0x38], ebx
call fcn.0049d740
mov al, byte [esp + 0x2c]
add esp, 0x18
push ebx
mov byte [esi + 0xc], al
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push 0x20
push esi
push 0x7c088
push dword [esp + 0x38]
mov dword [esi], 0x200
mov byte [esi + 4], bl
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov byte [esi + 7], bl
mov byte [esi + 8], bl
mov byte [esi + 9], 0xa0
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43c61c
lea eax, [ebp + 0x25]
mov dword [esp + 0x18], 0xa
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
inc eax
inc eax
dec dword [esp + 0x18]
jne 0x43c5ca
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x30]
call fcn.0049d740
push 0x14
lea eax, [ebp + 0x24]
push eax
push dword [esp + 0x3c]
call fcn.0049e8a0
push dword [esp + 0x40]
call fcn.0043d254
mov eax, dword [esp + 0x44]
movzx eax, byte [eax]
add esp, 0x1c
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
je 0x43c61c
mov byte [esp + 0x13], 1
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x10
jl 0x43c559
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebp, ebx
je 0x43c64d
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret