Function at 0x18000d1f0
Capabilities:
Check if file exists
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x27b8]
mov eax, 0x28b8
call fcn.18001cd10
sub rsp, rax
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rbp + 0x27a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x7a0]
mov r8d, 0x800
call fcn.18001e750
xor edx, edx
lea rcx, [rbp + 0xfa0]
mov r8d, 0x800
call fcn.18001e750
lea rdi, [rbp + 0x27e8]
call fcn.180005710
mov r9d, 0x3ff
mov qword [rsp + 0x30], rdi
xor esi, esi
lea rdx, [rbp + 0x7a0]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rbx
call fcn.18002395c
lea r8, [rbp + 0x7a0]
mov word [rbp + 0xf9e], si
lea rdx, str._zip__s_n
lea rcx, [rbp + 0xfa0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0xfa0]
mov word [rbp + 0x179e], si
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rbp + 0x380]
mov r8d, 0x208
call fcn.18001e750
lea r8, str.C:log_
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.180026ce0
lea r9, str.WanNengZip
lea r8, [rbp + 0x380]
lea rdx, str._s_s.log
lea rcx, [rbp + 0x170]
call fcn.180009590
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x208
call fcn.18001e750
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.18001e750
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x60]
call fcn.18001ff9c
lea rcx, [rbp + 0x170]
mov word [rax], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000d511
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x28b0], r14
mov rax, rbx
lea rcx, [rsp + 0x60]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x18000d384
lea r8, [rsp + 0x62]
mov edx, 0x104
lea r8, [r8 + rax*2]
lea rcx, [rbp + 0x590]
call fcn.180026ce0
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x380]
lea rdx, str._s_s.txt
lea rcx, [rbp + 0x170]
call fcn.180009590
xor ecx, ecx
call fcn.180024acc
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.180026ae4
xor edx, edx
lea rcx, [rbp + 0x17a0]
mov r8d, 0x1000
mov rdi, rax
call fcn.18001e750
mov ecx, dword [rdi]
lea rax, [rbp + 0x7a0]
mov r9d, dword [rdi + 0x10]
lea rdx, str.__d__02d__02d__02d:_02d:_02d_:_s
mov r8d, dword [rdi + 0x14]
inc r9d
mov qword [rsp + 0x40], rax
add r8d, 0x76c
mov eax, dword [rdi + 8]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x17a0]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x20], eax
call fcn.18000d190
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r14d, 1
lea rdx, [0x180040378]
test eax, eax
lea rcx, [rbp + 0x170]
cmovne esi, r14d
call fcn.180021064
mov rdi, rax
test rax, rax
je 0x18000d509
test esi, esi
jne 0x18000d49d
mov eax, 0xfeff
lea r8d, [r14 + 1]
mov r9, rdi
mov word [rsp + 0x54], ax
mov edx, r14d
lea rcx, [rsp + 0x54]
call fcn.1800212b0
lea rax, [rbp + 0x17a0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000d4a4
add ebx, ebx
lea rcx, [rbp + 0x17a0]
movsxd r8, ebx
mov r9, rdi
mov rdx, r14
call fcn.1800212b0
mov eax, 0xd
lea rcx, [rsp + 0x50]
mov r9, rdi
mov word [rsp + 0x50], ax
mov rdx, r14
lea r8d, [rax - 0xb]
call fcn.1800212b0
mov eax, 0xa
lea rcx, [rsp + 0x50]
mov r9, rdi
mov word [rsp + 0x50], ax
mov rdx, r14
lea r8d, [rax - 8]
call fcn.1800212b0
mov rcx, rdi
call fcn.180020f14
mov r14, qword [rsp + 0x28b0]
mov rcx, qword [rbp + 0x27a0]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x28b8
pop rdi
pop rsi
pop rbx
pop rbp
ret