Function at 0x14003d1e0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1610]
mov eax, 0x1710
call fcn.140095140
sub rsp, rax
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rbp + 0x1600], rax
xor r12d, r12d
mov qword [rsp + 0x70], rdx
mov rbx, rdx
mov qword [rsp + 0x40], r8
mov r13, rcx
mov r14, r8
mov rcx, qword [0x1400e2e50]
mov edi, r12d
lea edx, [r12 - 0x15]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, dword [rbx + 0x48]
lea rcx, [r13 + 0x20]
mov r15d, dword [r13 + 0x254]
lea r8, [rbp + 0x1f0]
mov dword [rsp + 0x28], edx
lea rsi, [r12 - 1]
mov rdx, r14
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x20], r15d
call fcn.140039ea0
mov ecx, dword [rbx + 0x48]
call fcn.14003f780
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x60]
add rbx, 0x20
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x58], rbx
call fcn.14003fb80
test al, al
je 0x14003d8d3
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.1400407b0
mov r15d, eax
test eax, eax
jne 0x14003d2d1
test dword [r13 + 0x254], 0x8000
jne 0x14003d8c2
xor r14d, r14d
lea rax, [rbp + 0x600]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], rax
mov rax, qword [0x1400e3070]
test rax, rax
je 0x14003d2fb
test byte [rax + 0x70], 1
jne 0x14003d654
mov r14, qword [rsp + 0x60]
lea r9, [rsp + 0x30]
mov ebx, 0x1000
lea rdx, [rbp + 0x600]
cmp r15d, ebx
mov rcx, r14
cmovb ebx, r15d
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov r12d, eax
call fcn.140040850
test al, al
jne 0x14003d37e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp eax, 0x26
jne 0x14003d347
xor r14d, r14d
mov r12d, r14d
jmp 0x14003d38a
test byte [rsp + 0x50], 1
je 0x14003d37e
mov r9d, 1
xor r8d, r8d
mov edx, ebx
mov rcx, r14
call fcn.140040af0
mov r8d, ebx
lea rcx, [rbp + 0x600]
xor edx, edx
call fcn.1400b1140
xor r14d, r14d
mov dword [rsp + 0x30], ebx
mov r12d, r14d
jmp 0x14003d38e
xor r14d, r14d
test r12d, r12d
jne 0x14003d5cb
mov ebx, dword [rsp + 0x30]
cmp rsi, 0xffffffffffffffff
jne 0x14003d527
mov ecx, dword [0x1400e2dd4]
cmp ebx, 0x18
jbe 0x14003d3e2
test cl, 0x20
je 0x14003d3e2
cmp word [rbp + 0x600], 0x18
jne 0x14003d3e2
mov eax, dword [rbp + 0x60c]
add eax, 0x18
cmp eax, r15d
jne 0x14003d3e2
cmp byte [rbp + 0x602], 4
jne 0x14003d3e2
sub r15d, 0x18
lea rdi, [rbp + 0x618]
sub ebx, 0x18
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
jmp 0x14003d3e7
mov rdi, qword [rsp + 0x38]
cmp ebx, 8
jbe 0x14003d481
test cl, cl
jns 0x14003d481
lea rcx, [rbp + 0x1f0]
call fcn.14001c340
mov rbx, rax
test rax, rax
je 0x14003d481
mov r8d, 3
lea rdx, [0x1400c7be8]
mov rcx, rax
call fcn.1400a2754
test eax, eax
jne 0x14003d481
cmp dword [rdi], 0x5367674f
jne 0x14003d481
cmp dword [rdi + 4], 0x200
jne 0x14003d481
lea rdx, [0x1400c9538]
mov ecx, 4
sub rdx, rbx
nop word [rax + rax]
lea rax, [rcx + 0x7ffffffa]
test rax, rax
je 0x14003d472
movzx eax, word [rdx + rbx]
test ax, ax
je 0x14003d472
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x14003d450
test rcx, rcx
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
mov rax, qword [rsp + 0x78]
mov rdi, r14
lea r14, [rax + 0x508]
lea rsi, [rax + 0x530]
mov rcx, r14
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp rbx, rsi
je 0x14003d4f5
nop dword [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rbp + 0x1f0]
mov rdi, rbx
call fcn.14009b63c
mov rcx, qword [rbx]
test eax, eax
je 0x14003d4e1
mov rbx, rcx
cmp rcx, rsi
jne 0x14003d4b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov edi, eax
jmp 0x14003d507
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14003d507
or dword [rdi + 0x4c], 1
lea rdx, [rbp + 0x1f0]
mov rcx, r13
call fcn.14003cd10
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003d65f
mov ebx, dword [rsp + 0x30]
xor r14d, r14d
test ebx, ebx
je 0x14003d587
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r8d, ebx
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x68]
cmp eax, dword [rsp + 0x30]
jne 0x14003d678
add qword [r13 + 8], rax
lea rdx, [rbp - 0x80]
mov rax, qword [r13 + 8]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x70], r14
call fcn.140017e30
sub r15d, dword [rsp + 0x30]
jne 0x14003d2d4
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x48]
mov r9d, 8
mov qword [rsp + 0x20], r14
lea edx, [r9 + 0x2a]
call fcn.140042680
cmp dword [rsp + 0x4c], 0
jne 0x14003d5b3
cmp dword [rsp + 0x48], 0
je 0x14003d5cb
lea r9, [rsp + 0x48]
mov rcx, rsi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp rsi, 0xffffffffffffffff
je 0x14003d5da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
jne 0x14003d8a1
test dword [r13 + 0x254], 0x400
je 0x14003d745
lea rax, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003d602
mov rcx, qword [r13 + 0x238]
inc rbx
mov rdx, qword [r13 + 0x240]
add rcx, rbx
cmp rcx, rdx
jbe 0x14003d696
mov rcx, qword [r13 + 0x230]
lea rax, [rdx + 0x1000]
mov qword [r13 + 0x240], rax
lea rdx, [rax*2 + 0x16]
test rcx, rcx
jne 0x14003d683
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
jmp 0x14003d68f
mov r12d, 0x4c7
jmp 0x14003d5cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test eax, eax
jne 0x14003d8a1
xor r14d, r14d
jmp 0x14003d587
mov r12d, 0x70
jmp 0x14003d5cb
mov r8d, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov qword [r13 + 0x230], rax
mov rcx, qword [r13 + 0x230]
test rcx, rcx
je 0x14003d745
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14003d745
mov dword [rax], 0x14
mov dword [rax + 0x10], 1
mov rcx, qword [r13 + 0x238]
mov r8, qword [r13 + 0x240]
sub r8, rcx
lea rdx, [rcx + 0xa]
lea rdx, [rax + rdx*2]
add r8, 1
je 0x14003d731
cmp r8, 0x7fffffff
jbe 0x14003d6f0
mov word [rdx], r14w
jmp 0x14003d731
mov ecx, 0x7ffffffe
lea r9, [rbp + 0x1f0]
sub rcx, r8
sub r9, rdx
lea rax, [rcx + r8]
test rax, rax
je 0x14003d722
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14003d722
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14003d702
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r14w
add qword [r13 + 0x238], rbx
mov rcx, qword [r13 + 0x230]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test dword [r13 + 0x254], 0x800
je 0x14003d8a1
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x250
lea r14, [r13 + 0x10]
call fcn.1400b1140
test rdi, rdi
jne 0x14003d88d
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14003d8b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rbp + 0x1f0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14003d7b0
lea r15, [rax*2 + 2]
mov rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
cmp byte [rax + rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x14003d7d0
mov rcx, qword [0x1400e1230]
lea r8, [rsi + 0x51]
add r8, r15
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14003d8b8
mov ecx, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x48]
shl rdx, 0x20
or rdx, rcx
mov qword [rax + 0x18], rdx
mov ecx, dword [rbp - 0x40]
mov edx, dword [rbp - 0x44]
shl rdx, 0x20
or rdx, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rdx
mov eax, dword [rcx + 0x30]
mov dword [rdi + 0x40], eax
mov eax, dword [rcx + 0x48]
mov dword [rdi + 0x44], eax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14003d857
nop dword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14003d840
mov rcx, qword [rsp + 0x70]
lea r14, [r13 + 0x10]
mov qword [rdi + 0x20], rcx
lea rbx, [rdi + 0x50]
mov rcx, rbx
lea rdx, [rbp + 0x1f0]
mov r8, r15
call fcn.1400b1500
mov rdx, qword [rsp + 0x40]
lea r8, [rsi + 1]
mov qword [rdi + 0x28], rbx
add rbx, r15
mov rcx, rbx
call fcn.1400b1500
mov qword [rdi + 0x30], rbx
mov rax, qword [r14 + 8]
mov qword [rdi], r14
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [r14 + 8], rdi
jmp 0x14003d8b8
test rdi, rdi
je 0x14003d8b8
mov rcx, qword [0x1400e1230]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14003fa30
mov r15d, dword [rsp + 0x50]
jmp 0x14003d8dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
je 0x14003d9b4
cmp r12d, 0x4c7
je 0x14003d9b4
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r15b, 2
je 0x14003d90c
xor eax, eax
jmp 0x14003d9b7
cmp r12d, 0x570
jne 0x14003d94c
mov rcx, qword [rbx]
call fcn.14004ef60
test al, al
je 0x14003d94c
test byte [0x1400e2dd0], 2
jne 0x14003d9b4
mov rcx, qword [r13 + 0x228]
lea r9, [0x1400048a0]
xor r8d, r8d
mov edx, 0x1412
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14003d9b4
cmp r12d, 0x15
jne 0x14003d972
mov rcx, qword [r13 + 0x228]
lea r9, [0x1400e27b8]
lea edx, [r12 - 0x14]
mov r8d, 0x3ef
call fcn.140018730
jmp 0x14003d9b4
lea rax, [rbp + 0x1f0]
mov dword [rsp + 0x28], 0x208
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [r13 + 0x228]
lea r9, [rbp + 0x1f0]
mov r8d, r12d
mov edx, 0xbb
call fcn.1400187f0
mov eax, r12d
mov rcx, qword [rbp + 0x1600]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x1768]
add rsp, 0x1710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret