Function at 0x404be0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x524
mov dl, byte [0x421d68]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], dl
mov byte [esp + 0x430], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x431]
mov byte [esp + 0x14c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x15]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x31c]
mov dword [esp + 0x318], 0
rep stosd dword es:[edi], eax
push eax
mov eax, dword [0x548160]
push 0x3e9
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov ecx, dword [0x548160]
push 0
push 0x3ea
push ecx
call ebx
push eax
call esi
mov edx, dword [0x548160]
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x40000
push 0
push 0x401
push 0x3f4
push edx
call ebp
mov eax, dword [0x548160]
push 0
push 0
push 0x402
push 0x3f4
push eax
call ebp
mov ecx, dword [0x548160]
push 0
push 1
push 0x402
push 0x3f4
push ecx
mov dword [0x548168], 2
call ebp
mov al, byte [0x54815c]
lea edx, [esp + 0x250]
cmp al, 1
mov edi, 0x418ed0
je 0x404d06
mov edi, str.Driver_install_result:_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x147
and ecx, 3
push 0x3f0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x548160]
push ecx
call ebp
push eax
call fcn.004094e0
add esp, 4
cmp al, 3
je 0x404db5
mov al, byte [0x54815c]
lea edx, [esp + 0x250]
cmp al, 1
jne 0x404d86
mov edi, 0x418e98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4052e6
mov edi, str.Invalid_driver_path_install_failure__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4052e6
push 0x54e294
call fcn.00407870
mov al, byte [0x439570]
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 4
test al, al
jbe 0x404ef2
mov edi, 0x439574
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push ecx
call ebx
mov edi, 0x418e68
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x4c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040d340
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x404ef2
cmp byte [0x54815c], 1
jne 0x404eab
lea edx, [esp + 0x48]
lea eax, [esp + 0x14]
push edx
push 0x418e54
push eax
jmp 0x404eba
lea ecx, [esp + 0x48]
lea edx, [esp + 0x14]
push ecx
push str.copy_files__s_failure_r_n
push edx
call fcn.0040cce6
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x250]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x548168]
push 0
mov ecx, eax
inc eax
mov dword [0x548168], eax
mov eax, dword [0x548160]
push ecx
push 0x402
push 0x3f4
push eax
call ebp
mov al, byte [0x439c04]
test al, al
jbe 0x40503e
mov edi, 0x439c0c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push ecx
call ebx
mov edi, 0x418e68
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x4c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040d340
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40503e
cmp byte [0x54815c], 1
jne 0x404ff7
lea edx, [esp + 0x48]
lea eax, [esp + 0x14]
push edx
push 0x418e54
push eax
jmp 0x405006
lea ecx, [esp + 0x48]
lea edx, [esp + 0x14]
push ecx
push str.copy_file__s_failure_r_n
push edx
call fcn.0040cce6
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x250]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x54e294
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x430]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..vxd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x318]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x434]
push ecx
call fcn.0040d12c
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40524a
or ecx, 0xffffffff
mov edi, 0x54e294
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x418e18
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x330]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, str._system_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x150]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405229
cmp byte [0x54815c], 1
jne 0x4051e2
lea edx, [esp + 0x48]
lea eax, [esp + 0x14]
push edx
push 0x418e54
push eax
jmp 0x4051f1
lea ecx, [esp + 0x48]
lea edx, [esp + 0x14]
push ecx
push str.copy_files__s_failure_r_n
push edx
call fcn.0040cce6
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x250]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x318]
push eax
push ecx
call fcn.0040d1f6
add esp, 8
test eax, eax
je 0x4050bd
mov eax, dword [esp + 0x10]
push eax
call fcn.0040d2bb
mov eax, dword [0x548168]
mov edx, dword [0x548160]
add esp, 4
mov ecx, eax
inc eax
push 0
push ecx
push 0x402
push 0x3f4
push edx
mov dword [0x548168], eax
call ebp
push 0x439458
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x548168]
mov ecx, dword [0x548160]
push 0
push eax
push 0x402
push 0x3f4
push ecx
call ebp
call fcn.00404840
mov al, byte [0x54815c]
lea edx, [esp + 0x250]
cmp al, 1
mov edi, 0x418df8
je 0x4052bb
mov edi, str.driver_install_is_finished.__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x548160]
push 0x40
lea eax, [esp + 0x254]
push 0x4392c4
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x548160]
push 1
push 0x3e9
push edx
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov eax, dword [0x548160]
push 1
push 0x3ea
push eax
call ebx
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x524
ret