Function at 0x1401d3880
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov dword [rsp + 0x3c], r9d
mov edi, r8d
mov dword [rsp + 0x58], r8d
mov r14, rdx
mov qword [rsp + 0x60], rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rdx
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x50], rax
xor r12d, r12d
mov dword [rsp + 0x34], r12d
cmp qword [rdx + 0x18], 0x10
jb 0x1401d38ec
mov rdx, qword [rdx]
lea r8, [0x1402a2984]
lea rcx, [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov qword [rsp + 0x70], r12
mov qword [rsi], r12
mov qword [rsi + 0x18], SafeArrayGetLBound
mov byte [rsi], 0
mov qword [rsi + 0x10], r12
mov byte [rsi], 0
mov dword [rsp + 0x34], 1
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401d42e0
mov r15d, r12d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov ebx, eax
mov dword [rsp + 0x38], eax
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.1400f3820
mov qword [rsp + 0x48], rax
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1400f3820
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x12
jb 0x1401d3a1f
lea rax, [r8 + 0x12]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0x10
jb 0x1401d39a9
mov rbx, qword [rdi]
lea rax, [0x1402b1982]
mov r13d, SafeArrayGetLBound
lea r12, str.getMD5_totalsize:
cmp rax, rbx
jbe 0x1401d39dd
lea rax, [rbx + r8]
cmp r12, rax
ja 0x1401d39dd
cmp rbx, r12
ja 0x1401d39d5
xor r14d, r14d
jmp 0x1401d39e0
mov r14, rbx
sub r14, r12
jmp 0x1401d39e0
mov r14, r13
lea rcx, [rbx + 0x12]
inc r8
mov rdx, rbx
call fcn.14021bb20
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.14021bb20
lea rcx, [rbx + r14]
sub r13, r14
lea rdx, [r12 + 0x12]
add rdx, r14
mov r8, r13
call fcn.14021bb20
mov r14, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x38]
jmp 0x1401d3a4a
mov r13d, SafeArrayGetLBound
mov qword [rsp + 0x28], r13
lea r12, str.getMD5_totalsize:
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.1400d2c60
mov rdi, rax
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], SafeArrayGetLBound
mov byte [rdi], r12b
mov dword [rsp + 0x34], 3
lea r8d, [r12 + 0xd]
lea rdx, str._start_size:
lea rcx, [rbp - 0x58]
call fcn.1400e7f00
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], r12b
mov dword [rsp + 0x34], 7
mov r9, qword [rsp + 0x48]
lea r8, [rbp - 0x38]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 8]
call fcn.1400da300
mov dword [rsp + 0x34], SafeArrayGetLBound
lea rcx, [rbp + 8]
call fcn.14017eab0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1401d3b1f
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3b19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4358
call fcn.1401e3784
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1401d3b5a
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3b55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d435e
call fcn.1401e3784
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], SafeArrayGetLBound
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401d3ba5
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3ba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4364
call fcn.1401e3784
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401d3bf0
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3beb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d436a
call fcn.1401e3784
mov edi, dword [rsp + 0x58]
sub ebx, edi
mov dword [rsp + 0x38], ebx
mov ebx, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], ebx
cmovl ebx, dword [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
mov edx, ebx
lea rcx, [rbp - 0x18]
call fcn.1400f3820
nop
mov r8, rax
lea rdx, str.getMD5_blocksize:
lea rcx, [rbp + 8]
call fcn.1400d13b0
mov rcx, rax
call fcn.14017eab0
nop
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401d3c6e
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3c69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4370
call fcn.1401e3784
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov r8, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1401d3c8a
mov r8, qword [r14]
mov edx, 0x104
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
mov edx, ebx
lea rcx, [rbp - 0x18]
call fcn.1400f3820
mov qword [rsp + 0x48], rax
mov edx, edi
lea rcx, [rbp - 0x38]
call fcn.1400f3820
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 5
jb 0x1401d3d58
lea rax, [r8 + 5]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0x10
jb 0x1401d3ce2
mov rbx, qword [rdi]
lea rax, [0x1402b19a1]
mov r13d, 5
lea r12, str._MD5_
cmp rax, rbx
jbe 0x1401d3d16
lea rax, [rbx + r8]
cmp r12, rax
ja 0x1401d3d16
cmp rbx, r12
ja 0x1401d3d0e
xor r14d, r14d
jmp 0x1401d3d19
mov r14, rbx
sub r14, r12
jmp 0x1401d3d19
mov r14, r13
lea rcx, [rbx + 5]
inc r8
mov rdx, rbx
call fcn.14021bb20
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.14021bb20
lea rcx, [rbx + r14]
sub r13, r14
lea rdx, [r12 + 5]
add rdx, r14
mov r8, r13
call fcn.14021bb20
mov r14, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x3c]
jmp 0x1401d3d83
mov r13d, 5
mov qword [rsp + 0x28], r13
lea r12, str._MD5_
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.1400d2c60
mov rdi, rax
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], SafeArrayGetLBound
mov byte [rdi], r12b
mov dword [rsp + 0x34], 0x1f
lea r8d, [r12 + 1]
lea rdx, [0x14029b078]
lea rcx, [rbp - 0x58]
call fcn.1400e7f00
movups xmm0, xmmword [rax]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x18], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], r12b
mov dword [rsp + 0x34], 0x3f
mov r9, qword [rsp + 0x48]
lea r8, [rbp + 8]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.1400da300
mov dword [rsp + 0x34], 0x7f
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r8, qword [rbp - 0x78]
mov edx, 0x104
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401d3e69
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3e64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4376
call fcn.1401e3784
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1401d3eb5
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3eaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d437c
call fcn.1401e3784
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1401d3ef0
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4382
call fcn.1401e3784
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], SafeArrayGetLBound
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1401d3f3b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3f36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4388
call fcn.1401e3784
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], SafeArrayGetLBound
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401d3f86
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d3f81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d438e
call fcn.1401e3784
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
lea r8, [0x1402a29b4]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
cmp eax, 0xffffffff
je 0x1401d3fd6
cmp r15d, ebx
jge 0x1401d3fd6
mov rdx, qword [rsp + 0x68]
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
inc r15d
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
cmp eax, 0xffffffff
jne 0x1401d3fb3
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [rsp + 0x68]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], SafeArrayGetLBound
lea rax, [rbp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1401d4010
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.1400e82b0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.1401d1580
cmp byte [rbp + 0x1c0], 0
je 0x1401d409e
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
mov ecx, 0x20
call fcn.1400d1570
mov rcx, rax
mov qword [rbp - 0x68], SafeArrayGetLBound
mov qword [rbp - 0x60], 0x1f
movups xmm0, xmmword [str.getMD5_removetemp]
movups xmmword [rax], xmm0
movzx eax, byte [0x1402b19b8]
mov byte [rcx + 0x10], al
mov byte [rcx + 0x11], 0
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x78]
call fcn.14017eab0
jmp 0x1401d4181
lea rax, [rbp + 0x30]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x1401d40a5
inc rcx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [rsp + 0x50]
mov qword [rdi], rax
lea rcx, [rbp + 0x30]
mov r8, rbx
inc r8
cmp byte [rcx + r8], 0
jne 0x1401d40c5
inc r8
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp + 0x30]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x1401d40e3
inc rdx
lea r8, [rbp + 0x30]
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
mov rdx, qword [rdi]
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
mov byte [rbp - 0x78], 0
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x1401d4115
lea rcx, [rbp - 0x78]
call fcn.1400e82b0
nop
lea r8, [rbp - 0x78]
lea rdx, str.getMD5_chunkfilepath_name:
lea rcx, [rbp - 0x18]
call fcn.1400d13b0
mov rcx, rax
call fcn.14017eab0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401d4181
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d417c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d4394
call fcn.1401e3784
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1401d42e0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
mov byte [rbp - 0x78], 0
mov r8, rbx
inc r8
cmp byte [rdi + r8], 0
jne 0x1401d41a6
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400e82b0
nop
lea r8, [rbp - 0x78]
lea rdx, str.MD5_final_is
lea rcx, [rbp - 0x18]
call fcn.1400d13b0
mov rcx, rax
call fcn.14017eab0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401d4215
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d4210
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d439a
call fcn.1401e3784
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayGetLBound
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1401d4225
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400e82b0
lea rax, [rbp - 0x78]
cmp rsi, rax
je 0x1401d429c
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1401d4280
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1401d427b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401d434c
mov rcx, r8
call fcn.1401e3784
mov qword [rsi + 0x18], SafeArrayGetLBound
mov byte [rsi], 0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsi + 0x10], xmm1
jmp 0x1401d42d7
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401d42d7
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401d42d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401d434c
call fcn.1401e3784
mov rcx, rdi
call fcn.1401e344a
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1401d4316
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1401d4311
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401d4352
mov rcx, r8
call fcn.1401e3784
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], SafeArrayGetLBound
mov byte [r14], 0
mov rax, rsi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3