Function at 0x18002f580
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0xf8], rax
mov r12, r9
mov dword [rsp + 0x48], r8d
mov rax, rdx
mov r13, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov r14d, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18002f978
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], 0xf
mov byte [rbp + 0xd8], dil
lea rsi, [r13 + 0x48]
mov ebx, edi
mov qword [rbp - 0x80], rbx
test rsi, rsi
je 0x18002f64f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, rsi
mov qword [rbp - 0x80], rbx
lea rax, vtable.Json::StreamWriter::Factory.0
mov qword [rsp + 0x50], rax
lea rax, vtable.Json::StreamWriterBuilder.0
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x60], 0
and dword [rsp + 0x60], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0x58]
call fcn.1800446d0
nop
cmp dword [rsp + 0x48], 0
jne 0x18002f6ff
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x48], rax
mov byte [rbp + 0xb8], 4
or dword [rbp + 0xb8], 0x100
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], rdi
xor edx, edx
lea rcx, [0x1800fb880]
call fcn.18003cce0
mov qword [rbp + 0xb0], rax
lea r8, [0x1800fb6bb]
lea rdx, str.indentation
lea rcx, [rsp + 0x58]
call fcn.18003ec30
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.18003d640
lea rax, [rbp - 0x78]
mov qword [rbp - 0x48], rax
mov byte [rbp - 0x70], 2
and dword [rbp - 0x70], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov eax, dword [r13 + 0xf4]
mov qword [rbp - 0x78], rax
lea r8, [0x1800fb6c9]
lea rdx, str.precision
lea rcx, [rsp + 0x58]
call fcn.18003ec30
mov rcx, rax
lea rdx, [rbp - 0x78]
call fcn.18003d640
nop
lea rcx, [rbp - 0x40]
call fcn.18003ab20
nop
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 8]
mov r14, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
lea rdx, [r13 + 0x70]
lea r8, [rbp - 0x40]
mov rcx, r14
call qword [rax + 8]
nop
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], rdi
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
mov esi, 4
mov dword [rsp + 0x40], esi
mov ecx, dword [rbp + 0x38]
test cl, 2
jne 0x18002f7d8
mov rax, qword [rbp + 8]
mov r8, qword [rax]
test r8, r8
je 0x18002f7d8
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x30]
cmovb r8, qword [rbp + 0x30]
sub r8, rdx
jmp 0x18002f7fd
test sil, cl
jne 0x18002f809
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x18002f809
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp + 0xb0]
call fcn.180033130
and esi, 0xfffffffb
mov dword [rsp + 0x40], esi
or esi, 2
mov dword [rsp + 0x40], esi
and esi, 0xfffffffd
mov dword [rsp + 0x40], esi
or esi, 1
mov dword [rsp + 0x40], esi
mov rax, qword [r14]
mov r14d, 1
mov edx, r14d
mov rcx, qword [rsp + 0x48]
call qword [rax]
nop
lea rcx, [rbp - 0x40]
call fcn.18003a0c0
lea rcx, [rbp + 0xd8]
call fcn.1800330d0
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rbp + 0xd8], xmm0
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rbp + 0xe8], xmm1
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
and esi, 0xfffffffe
mov dword [rsp + 0x40], esi
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
lea rax, vtable.Json::StreamWriterBuilder.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.18003d580
nop
lea rax, vtable.Json::StreamWriter::Factory.0
mov qword [rsp + 0x50], rax
test rbx, rbx
je 0x18002f8d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [rbp + 0xe8]
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 0x10
cmovae rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18002f915
cmp ebx, dword [rsp + 0x44]
je 0x18002f918
mov r14d, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0x10
jb 0x18002f95f
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f95a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f9b9
call fcn.18008f874
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], 0xf
mov byte [rbp + 0xd8], 0
test r12, r12
je 0x18002f98c
mov eax, 8
test r14d, r14d
cmove edi, eax
mov dword [r12], edi
mov eax, r14d
mov rcx, qword [rbp + 0xf8]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800aee30
int3