Function at 0x140038840
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, rcx
xor r13d, r13d
mov dword [rbp + 0x48], r13d
lea edx, [r13 + 9]
lea rcx, [rbp - 0x40]
call fcn.140075170
nop
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x40]
call fcn.1400752d0
mov rdi, rax
mov rcx, rax
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 1
lea r12, str.Physibel_
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [r12 + rax], 0
jne 0x1400388b0
mov rdx, qword [rdi]
mov dword [rsp + 0x20], eax
mov r9, r12
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 3
mov r9, qword [0x1400e1038]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 7
lea r9, str.BiscoDxf_dxfpath.txt
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x140038940
mov rdx, qword [rbp + 0x50]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
lea rdx, [rbp - 0x50]
lea rcx, [0x1400e1008]
call qword [sym.imp.mfc140.dll_Ordinal_1504]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rdx, [0x1400a5a94]
mov rcx, qword [0x1400e1008]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400e0f70], rax
test rax, rax
je 0x140038cd1
mov r8, qword [0x1400e1020]
lea rdx, [0x1400a63e4]
mov rcx, rax
call fcn.140020120
mov rcx, qword [0x1400e0f70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x1400e0f70], r13
mov edx, 2
lea rcx, [rbp - 0x20]
call fcn.140075170
nop
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.1400752d0
mov rdi, rax
mov rcx, rax
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 8
lea r9, str.QLMBiscoDxf64.exe
mov rcx, rbx
inc rcx
cmp byte [r9 + rcx], 0
jne 0x140038a31
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
lea rdx, [rbp + 0x50]
lea rcx, [0x1400e1008]
call qword [sym.imp.mfc140.dll_Ordinal_1504]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rdx, [0x1400e1008]
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov r14, rax
mov qword [rbp + 0x50], rax
mov ecx, 0x10
call sub.mfc140.dll_Ordinal_1485
mov rdi, rax
test rax, rax
je 0x140038aac
mov rcx, rax
call qword [sym.imp.mfc140.dll_Ordinal_316]
jmp 0x140038aaf
mov rdi, r13
mov ecx, 0x10
call sub.mfc140.dll_Ordinal_1485
mov qword [rbp + 0x58], rax
test rax, rax
je 0x140038add
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rax
call sub.mfc140.dll_Ordinal_480
mov rsi, rax
jmp 0x140038ae0
mov rsi, r13
test rdi, rdi
je 0x140038b32
mov qword [rdi + 8], rsi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1504]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x14003b0b0]
call sub.mfc140.dll_Ordinal_2142
mov edx, 0xffffffff
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x40]
call fcn.1400752d0
mov rdi, rax
mov rcx, rax
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 0x10
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp byte [r12 + rcx], 0
jne 0x140038b70
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ecx
mov r9, r12
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 0x30
mov r9, qword [0x1400e1038]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov dword [rbp + 0x48], 0x70
lea r9, str.BiscoDxf_bmppath.txt
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x140038c00
mov rdx, qword [rbp + 0x50]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
lea rdx, [rbp - 0x50]
lea rcx, [0x1400e1008]
call qword [sym.imp.mfc140.dll_Ordinal_1504]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rdx, [0x1400a57b0]
mov rcx, qword [0x1400e1008]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400e0f68], rax
test rax, rax
je 0x140038ca8
mov r8, rax
mov edx, 0x100
lea rdi, [0x1400e0e00]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140038d14
mov rcx, qword [0x1400e1008]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
lea rcx, [rbp - 8]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [0x1400e0eff], 0
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140038d20
movsxd rax, ebx
dec rax
cmp rax, 0x100
jae 0x140038d70
mov byte [rax + rdi], 0
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x1400e0f68], r13
mov rcx, qword [0x1400e1008]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [r15]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x158]
jmp 0x140038ca8
call fcn.14008c150
int3