Function at 0x1400045f0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Terminate process

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0x180], rax
call fcn.140005070
call fcn.140004490
call fcn.140001dc0
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, str.3.____INSTALLING_THE_DRIVER____
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
lea rcx, [0x14000ead0]
mov r8d, 0x190
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004b7a
lea r8, str.starting_to_install_the_driver
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, str.ricsetup64.inf
mov qword [rsp + 0x28], rax
lea r9, str._PS_Driver_for_Universal_Print_
lea rax, str.__h_x64__v__Type_3___User_Mode___f
lea r8, str.rundll32_printui.dll_PrintUIEntry__ia__m
mov qword [rsp + 0x20], rax
lea rdx, str._s_s_s_s
lea rcx, [0x14000ead0]
call fcn.140005e20
lea rcx, [0x14000ead0]
xor ebx, ebx
call fcn.140005cb0
mov rcx, qword [0x14000e620]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jg 0x140004731
cmp dword [rsp + 0x30], 0x103
je 0x140004703
mov rcx, qword [0x14000e620]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004b7a
lea r8, [0x14000ead0]
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, str.4._____________INSTALLING_THE_RICOH_CODE_now_____________
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
lea rcx, [0x14000ead0]
mov r8d, 0x190
call sub.VCRUNTIME140.dll_memset
lea r8, str.IBMRicoh64.exe__S__v_qn
lea rdx, [0x140007a8c]
lea rcx, [0x14000ead0]
call fcn.140005e20
lea rcx, [0x14000ead0]
call fcn.140005cb0
mov rcx, qword [0x14000e620]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14000e620]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, [0x14000ead0]
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140004490
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, str.5_________List_of_files_in_vpsx_printer_driver_management_dir__________
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rsp + 0x40]
lea rcx, str.c:program_fileslrs_vpsx_printer_driver_management
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004940
nop word [rax + rax]
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, [rsp + 0x6c]
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400048e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, str.6._________about_to_issue_the_drvaddprt.exe_cmd__________
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
lea rcx, [0x14000ead0]
mov r8d, 0x190
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14000ed70]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
lea r8, [0x14000e9d0]
mov edx, 0xff
lea rcx, [0x14000ed70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor edx, edx
lea rcx, [0x14000e640]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
lea r8, [0x14000ee70]
mov edx, 0xff
lea rcx, [0x14000e640]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
cmp dword [0x14000ec64], 1
je 0x140004a7d
lea rcx, [0x14000e640]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
mov rcx, rax
lea rdx, [0x14000907c]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140004a7d
lea rcx, [0x14000e640]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
mov rcx, rax
lea rdx, str.LETTER
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140004a4b
lea rax, str.:631_PRINT_AT_IBM_LETTER
jmp 0x140004a84
lea rcx, [0x14000ed70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
mov rcx, rax
lea rdx, str.USVPSX
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140004a7d
cmp byte [0x14000e640], 0
lea rax, str.:631_PRINT_AT_IBM_LETTER
je 0x140004a84
lea rax, str.:631_PRINT_AT_IBM_A4
lea r9, [0x14000e9d0]
mov qword [rsp + 0x20], rax
lea r8, str.cmd__c_start__min__wait__B_c:_program_files_lrs_vpsx_printer_driver_management_drvaddprt.exe_http:__
lea rdx, str._s_s_s
lea rcx, [0x14000ead0]
call fcn.140005e20
lea rcx, str.c:program_fileslrs_vpsx_printer_driver_managementdrvaddprt.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140004aed
lea rcx, str.__________DRVADDPRT.EXE__not_found_bad_install______________
call fcn.140005c20
xor r9d, r9d
lea r8, str.Print_IBM_Message
lea rdx, str.The_file_c:program_fileslrs_vpsx_printer_driver_managementdrvaddprt.exe_nwas_not_found_nBad_install_exit_code_1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140004bb9
lea r8, [0x14000ead0]
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [0x14000ead0]
call fcn.140005cb0
mov rcx, qword [0x14000e620]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14000e620]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140005f50
add rsp, 0x190
pop rbx
ret
lea r8, str.failed_to_open_log_file_fatal_err
lea rdx, [0x140007a8c]
lea rcx, [0x14000ead0]
call fcn.140005e20
xor r9d, r9d
lea r8, str.Print_ibm_install
lea rdx, [0x14000ead0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, str.failed_to_open_log_file_fatal_err
lea rdx, [0x140007a8c]
lea rcx, [0x14000ead0]
call fcn.140005e20
xor r9d, r9d
lea r8, str.Print_ibm_install
lea rdx, [0x14000ead0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3