Function at 0x18001fcb0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x20], r13d
lea r15, [rcx + 0x40]
mov qword [rbp - 0x40], r15
xor r12b, r12b
mov byte [rbp - 0x38], r12b
test r15, r15
je 0x18001fd37
mov rcx, qword [r15]
test rcx, rcx
je 0x18001fd33
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001fd2b
xor r12b, r12b
jmp 0x18001fd33
mov byte [r15 + 8], 1
mov r12b, 1
mov byte [rbp - 0x38], r12b
lea rbx, [rsi + 0x38]
mov qword [rbp - 0x48], rbx
test rbx, rbx
je 0x18001fd53
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001fd53
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov qword [rsp + 0x58], r13
lea rdx, [rsi + 0x18]
cmp qword [rdx + 0x18], 8
jb 0x18001fd66
mov rdx, qword [rdx]
lea r8, [0x1801b6108]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x1800203a0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800203a0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [rbp - 0x70]
and eax, 0xffffff00
mov dword [rbp - 0x70], eax
btr eax, 8
mov dword [rbp - 0x70], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov r14, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x50], rax
cmp r14, rax
je 0x1800202ac
lea rsi, [r14 + 0x38]
nop
mov eax, dword [rsp + 0x68]
and eax, 0xffffff00
mov dword [rsp + 0x68], eax
btr eax, 8
mov dword [rsp + 0x68], eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rdx, r14
cmp qword [rsi - 0x20], 8
jb 0x18001fe09
mov rdx, qword [r14]
mov r9d, 0xfde9
mov r8d, dword [rsi - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1800549c0
or edi, 2
mov dword [rsp + 0x20], edi
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
or edi, 1
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x30], 4
or dword [rsp + 0x30], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
mov edx, dword [rbp - 0x18]
call fcn.1800e8b00
mov qword [rsp + 0x28], rax
lea r8, [0x1801b6154]
lea rdx, str.name
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x18001fece
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fec9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002035d
call fcn.18017df04
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], InitCommonControls
mov byte [rbp - 0x28], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rdx, [rsi - 0x18]
cmp qword [rsi], 8
jb 0x18001fef5
mov rdx, qword [rdx]
mov r9d, 0xfde9
mov r8d, dword [rsi - 8]
lea rcx, [rbp - 8]
call fcn.1800549c0
or edi, 0x10
mov dword [rsp + 0x20], edi
and edi, 0xffffffef
mov dword [rsp + 0x20], edi
or edi, 8
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x30], 4
or dword [rsp + 0x30], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
mov edx, dword [rbp + 8]
call fcn.1800e8b00
mov qword [rsp + 0x28], rax
lea r8, [0x1801b614c]
lea rdx, str.path
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
and edi, 0xfffffff7
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x18001ffba
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ffb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020364
call fcn.18017df04
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], InitCommonControls
mov byte [rbp - 8], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 8]
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x28], rax
lea r8, [0x1801b6164]
lea rdx, str.size
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 0x10]
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x28], rax
lea r8, [0x1801b615c]
lea rdx, str.time
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
movsxd rax, dword [rsi + 0x18]
mov qword [rsp + 0x28], rax
lea r8, [0x1801b617a]
lea rdx, str.pageNo
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
movsxd rax, dword [rsi + 0x1c]
mov qword [rsp + 0x28], rax
lea r8, [0x1801b6170]
lea rdx, str.viewMode
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
movsxd rax, dword [rsi + 0x20]
mov qword [rsp + 0x28], rax
lea r8, [0x1801b6197]
lea rdx, str.fitMode
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
movsxd rax, dword [rsi + 0x24]
mov qword [rsp + 0x28], rax
lea r8, [0x1801b618a]
lea rdx, str.zoomFactor
lea rcx, [rsp + 0x60]
call fcn.1800ea820
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800e96e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.1800e9450
mov r13, rax
movsx ecx, byte [rbp - 0x70]
test ecx, ecx
js 0x180020274
cmp ecx, 5
jle 0x180020274
cmp ecx, 6
je 0x180020201
cmp ecx, 7
jne 0x180020274
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax + 8]
jmp 0x180020276
mov rcx, qword [rbp - 0x78]
cmp qword [rcx + 8], 0
je 0x180020274
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x180020220
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax + 0x28]
inc ecx
jmp 0x180020276
mov rax, qword [rcx]
cmp byte [rax + 0x19], 0
je 0x180020254
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x180020245
cmp rcx, qword [rax]
jne 0x180020245
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180020233
cmp byte [rcx + 0x19], 0
cmovne rax, rcx
mov ecx, dword [rax + 0x28]
inc ecx
jmp 0x180020276
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x18002026d
nop
mov rax, rcx
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x180020260
mov ecx, dword [rax + 0x28]
inc ecx
jmp 0x180020276
xor ecx, ecx
mov edx, ecx
lea rcx, [rbp - 0x78]
call fcn.1800ea3b0
mov rcx, rax
mov rdx, r13
call fcn.1800e96e0
nop
lea rcx, [rsp + 0x60]
call fcn.1800e9610
add r14, 0x60
add rsi, 0x60
xor r13d, r13d
cmp r14, qword [rbp - 0x50]
jne 0x18001fdd0
lea rdi, vtable.RCJson::Writer.0
mov qword [rbp + 0x38], rdi
lea rsi, vtable.RCJson::FastWriter.0
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], InitCommonControls
mov byte [rbp + 0x40], 0
mov word [rbp + 0x60], 0
mov byte [rbp + 0x62], 0
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x38]
call fcn.1800e7a90
nop
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rcx, qword [rbp + 0x18]
mov r9, qword [rsp + 0x58]
mov r8, qword [rbp + 0x28]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x180020370
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002036b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002036b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18017df04
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], InitCommonControls
mov byte [rbp + 0x18], 0
mov qword [rbp + 0x38], rsi
lea rcx, [rbp + 0x40]
call fcn.1800070e0
nop
mov qword [rbp + 0x38], rdi
lea rcx, [rbp - 0x78]
call fcn.1800e9610
mov dil, 1
jmp 0x1800203a3
xor dil, dil
test rbx, rbx
je 0x1800203ba
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800203b6
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x48], r13
test r15, r15
je 0x1800203d7
test r12b, r12b
je 0x1800203d7
mov rcx, qword [r15]
test rcx, rcx
je 0x1800203d2
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [r15 + 8], 0
mov qword [rbp - 0x40], r13
movzx eax, dil
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.18017dee0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret