Function at 0x1400291e0
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x40], rcx
lea r14, str._0_n_
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140029246
test byte [rcx + 0x1c], 4
je 0x140029246
cmp byte [rcx + 0x19], 5
jb 0x140029246
mov edx, 0x1b
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.14000459c
or r12, 0xffffffffffffffff
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
xor edi, edi
mov r15d, edi
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
cmp dword [0x1400a72cc], edi
jne 0x1400292e2
call fcn.14002c91c
mov r13d, eax
test eax, eax
je 0x1400292d8
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400292b8
test byte [rcx + 0x1c], 4
je 0x1400292b8
cmp byte [rcx + 0x19], 2
jb 0x1400292b8
lea edx, [rdi + 0x1c]
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.1400045c8
nop
cmp qword [rsp + 0x98], 8
jb 0x1400292d0
mov rcx, qword [rsp + 0x80]
call fcn.140001390
mov eax, r13d
jmp 0x140029517
mov dword [0x1400a72cc], 1
mov rcx, qword [rsp + 0x40]
call fcn.14006ce18
mov r13d, eax
test eax, eax
je 0x14002932b
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400292b8
test byte [rcx + 0x1c], 4
je 0x1400292b8
cmp byte [rcx + 0x19], 2
jb 0x1400292b8
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.14000c784
jmp 0x1400292b8
lea r8, [rsp + 0x58]
mov r13, qword [rsp + 0x40]
mov rdx, r13
xor ecx, ecx
call fcn.140029758
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140029539
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14002937b
test byte [rcx + 0x1c], 4
je 0x14002937b
cmp byte [rcx + 0x19], 2
jb 0x14002937b
mov edx, 0x1e
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.140004994
mov r13, r12
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x1400293db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400293db
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x1400293db
test byte [rax + 0x1c], 4
je 0x1400293db
cmp byte [rax + 0x19], 2
jb 0x1400293db
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
mov edx, 0x24
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.140004994
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x140029438
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140029438
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140029438
test byte [rax + 0x1c], 4
je 0x140029438
cmp byte [rax + 0x19], 2
jb 0x140029438
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
mov edx, 0x25
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.140004994
cmp r13, r12
je 0x140029493
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140029493
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140029493
test byte [rax + 0x1c], 4
je 0x140029493
cmp byte [rax + 0x19], 2
jb 0x140029493
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
mov edx, 0x26
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.140004994
test r15d, r15d
je 0x1400294fb
mov dword [rsp + 0xa0], r15d
mov word [rsp + 0xa4], di
mov r9d, r15d
lea r8, [0x1400926e0]
mov edx, 0xc
lea rcx, [rsp + 0xa4]
call fcn.140004520
lea r8, [rsp + 0xa4]
test eax, eax
cmovs r8, rdi
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov edx, 2
lea ecx, [rdx - 1]
mov r9d, 0x80007d4d
mov r8d, edx
call fcn.14006a378
nop
cmp qword [rsp + 0x98], 8
jb 0x140029513
mov rcx, qword [rsp + 0x80]
call fcn.140001390
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r8, [rsp + 0x50]
mov rdx, r13
mov ecx, 1
call fcn.140029758
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140029581
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14002937b
test byte [rcx + 0x1c], 4
je 0x14002937b
cmp byte [rcx + 0x19], 2
jb 0x14002937b
mov edx, 0x1f
jmp 0x140029368
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
lea rax, str.schema.ini
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x140092720]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140004520
mov r13d, eax
test eax, eax
jns 0x14002961a
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x1400295fa
test byte [rcx + 0x1c], 4
je 0x1400295fa
cmp byte [rcx + 0x19], 2
jb 0x1400295fa
mov edx, 0x20
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.1400045c8
mov eax, r13d
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x140029612
movzx r15d, r13w
jmp 0x140029493
mov r15d, r13d
jmp 0x140029493
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xc0]
call fcn.14006c054
mov r13, rax
mov qword [rsp + 0x60], rax
cmp rax, r12
jne 0x140029689
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140029493
test byte [rcx + 0x1c], 4
je 0x140029493
cmp byte [rcx + 0x19], 2
jb 0x140029493
mov edx, 0x21
jmp 0x140029480
lea rcx, [rsp + 0x80]
call fcn.14002c420
nop
mov eax, dword [rsp + 0x90]
lea r8d, [rax + rax]
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14002943d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14002943d
test byte [rcx + 0x1c], 4
je 0x14002943d
cmp byte [rcx + 0x19], 2
jb 0x14002943d
mov edx, 0x23
mov r9d, eax
lea r8, [0x140093478]
mov rcx, qword [rcx + 0x10]
call fcn.140004994
jmp 0x14002943d