Function at 0x1401afc50
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 [0x140351248]
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 0x1401afcbc
mov rdx, qword [rdx]
lea r8, [0x140274194]
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], SafeArrayLock
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 0x1401b06b0
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.1400dab80
mov qword [rsp + 0x48], rax
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1400dab80
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x12
jb 0x1401afdef
lea rax, [r8 + 0x12]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0x10
jb 0x1401afd79
mov rbx, qword [rdi]
lea rax, [0x1402822a2]
mov r13d, SafeArrayLock
lea r12, str.getMD5_totalsize:
cmp rax, rbx
jbe 0x1401afdad
lea rax, [rbx + r8]
cmp r12, rax
ja 0x1401afdad
cmp rbx, r12
ja 0x1401afda5
xor r14d, r14d
jmp 0x1401afdb0
mov r14, rbx
sub r14, r12
jmp 0x1401afdb0
mov r14, r13
lea rcx, [rbx + 0x12]
inc r8
mov rdx, rbx
call fcn.1401f7750
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.1401f7750
lea rcx, [rbx + r14]
sub r13, r14
lea rdx, [r12 + 0x12]
add rdx, r14
mov r8, r13
call fcn.1401f7750
mov r14, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x38]
jmp 0x1401afe1a
mov r13d, SafeArrayLock
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.1400b9fc0
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], SafeArrayLock
mov byte [rdi], r12b
mov dword [rsp + 0x34], 3
lea r8d, [r12 + 0xd]
lea rdx, str._start_size:
lea rcx, [rbp - 0x58]
call fcn.1400cf260
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], SafeArrayLock
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.1400c1660
mov dword [rsp + 0x34], SafeArrayLock
lea rcx, [rbp + 8]
call fcn.140162100
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1401afeef
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401afee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0728
call fcn.1401bfb10
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1401aff2a
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401aff25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b072e
call fcn.1401bfb10
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], SafeArrayLock
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401aff75
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401aff70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0734
call fcn.1401bfb10
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayLock
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401affc0
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401affbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b073a
call fcn.1401bfb10
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.1400dab80
nop
mov r8, rax
lea rdx, str.getMD5_blocksize:
lea rcx, [rbp + 8]
call fcn.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401b003e
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b0039
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0740
call fcn.1401bfb10
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 0x1401b005a
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.1400dab80
mov qword [rsp + 0x48], rax
mov edx, edi
lea rcx, [rbp - 0x38]
call fcn.1400dab80
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 5
jb 0x1401b0128
lea rax, [r8 + 5]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rcx, 0x10
jb 0x1401b00b2
mov rbx, qword [rdi]
lea rax, [0x1402822c1]
mov r13d, 5
lea r12, str._MD5_
cmp rax, rbx
jbe 0x1401b00e6
lea rax, [rbx + r8]
cmp r12, rax
ja 0x1401b00e6
cmp rbx, r12
ja 0x1401b00de
xor r14d, r14d
jmp 0x1401b00e9
mov r14, rbx
sub r14, r12
jmp 0x1401b00e9
mov r14, r13
lea rcx, [rbx + 5]
inc r8
mov rdx, rbx
call fcn.1401f7750
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.1401f7750
lea rcx, [rbx + r14]
sub r13, r14
lea rdx, [r12 + 5]
add rdx, r14
mov r8, r13
call fcn.1401f7750
mov r14, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x3c]
jmp 0x1401b0153
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.1400b9fc0
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], SafeArrayLock
mov byte [rdi], r12b
mov dword [rsp + 0x34], 0x1f
lea r8d, [r12 + 1]
lea rdx, [0x14026cc98]
lea rcx, [rbp - 0x58]
call fcn.1400cf260
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], SafeArrayLock
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.1400c1660
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 0x1401b0239
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b0234
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0746
call fcn.1401bfb10
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayLock
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1401b0285
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b027f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b074c
call fcn.1401bfb10
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1401b02c0
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b02bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0752
call fcn.1401bfb10
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], SafeArrayLock
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1401b030b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b0306
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0758
call fcn.1401bfb10
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], SafeArrayLock
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1401b0356
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b0351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b075e
call fcn.1401bfb10
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
lea r8, [0x1402741c4]
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 0x1401b03a6
cmp r15d, ebx
jge 0x1401b03a6
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 0x1401b0383
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], SafeArrayLock
lea rax, [rbp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1401b03e0
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.1400cf610
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.1401ad950
cmp byte [rbp + 0x1c0], 0
je 0x1401b046e
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], SafeArrayLock
mov ecx, 0x20
call fcn.1400b88d0
mov rcx, rax
mov qword [rbp - 0x68], SafeArrayLock
mov qword [rbp - 0x60], 0x1f
movups xmm0, xmmword [str.getMD5_removetemp]
movups xmmword [rax], xmm0
movzx eax, byte [0x1402822d8]
mov byte [rcx + 0x10], al
mov byte [rcx + 0x11], 0
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x78]
call fcn.140162100
jmp 0x1401b0551
lea rax, [rbp + 0x30]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x1401b0475
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 0x1401b0495
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 0x1401b04b3
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], SafeArrayLock
mov byte [rbp - 0x78], 0
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x1401b04e5
lea rcx, [rbp - 0x78]
call fcn.1400cf610
nop
lea r8, [rbp - 0x78]
lea rdx, str.getMD5_chunkfilepath_name:
lea rcx, [rbp - 0x18]
call fcn.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401b0551
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b054c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b0764
call fcn.1401bfb10
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1401b06b0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayLock
mov byte [rbp - 0x78], 0
mov r8, rbx
inc r8
cmp byte [rdi + r8], 0
jne 0x1401b0576
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400cf610
nop
lea r8, [rbp - 0x78]
lea rdx, str.MD5_final_is
lea rcx, [rbp - 0x18]
call fcn.1400b8710
mov rcx, rax
call fcn.140162100
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401b05e5
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b05e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b076a
call fcn.1401bfb10
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], SafeArrayLock
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1401b05f5
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1400cf610
lea rax, [rbp - 0x78]
cmp rsi, rax
je 0x1401b066c
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1401b0650
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1401b064b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401b071c
mov rcx, r8
call fcn.1401bfb10
mov qword [rsi + 0x18], SafeArrayLock
mov byte [rsi], 0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsi + 0x10], xmm1
jmp 0x1401b06a7
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1401b06a7
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b06a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b071c
call fcn.1401bfb10
mov rcx, rdi
call fcn.1401bf7e0
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1401b06e6
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1401b06e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401b0722
mov rcx, r8
call fcn.1401bfb10
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], SafeArrayLock
mov byte [r14], 0
mov rax, rsi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1401c0070
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