Function at 0x140028db0
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x40], rcx
lea r14, [0x14009b020]
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140028e16
test byte [rcx + 0x1c], 4
je 0x140028e16
cmp byte [rcx + 0x19], 5
jb 0x140028e16
mov edx, 0x1b
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400042fc
or r12, 0xffffffffffffffff
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
xor edi, edi
mov r15d, edi
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rdi
mov word [rsp + 0x78], di
cmp dword [0x14009f10c], edi
jne 0x140028eac
call fcn.14002c4bc
mov r13d, eax
test eax, eax
je 0x140028ea2
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140028e85
test byte [rcx + 0x1c], 4
je 0x140028e85
cmp byte [rcx + 0x19], 2
jb 0x140028e85
lea edx, [rdi + 0x1c]
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.140004328
nop
cmp qword [rsp + 0x90], 8
jb 0x140028e9a
mov rcx, qword [rsp + 0x78]
call fcn.140001180
mov eax, r13d
jmp 0x1400290e5
mov dword [0x14009f10c], 1
mov rcx, qword [rsp + 0x40]
call fcn.14006c2b0
mov r13d, eax
test eax, eax
je 0x140028ef5
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140028e85
test byte [rcx + 0x1c], 4
je 0x140028e85
cmp byte [rcx + 0x19], 2
jb 0x140028e85
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.14000c4d8
jmp 0x140028e85
lea r8, [rsp + 0x50]
mov r13, qword [rsp + 0x40]
mov rdx, r13
xor ecx, ecx
call fcn.140029318
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140029107
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140028f45
test byte [rcx + 0x1c], 4
je 0x140028f45
cmp byte [rcx + 0x19], 2
jb 0x140028f45
mov edx, 0x1e
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov r13, r12
mov rcx, qword [rsp + 0x48]
cmp rcx, r12
je 0x140028fa5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140028fa5
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140028fa5
test byte [rax + 0x1c], 4
je 0x140028fa5
cmp byte [rax + 0x19], 2
jb 0x140028fa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x24
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x140029002
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140029002
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140029002
test byte [rax + 0x1c], 4
je 0x140029002
cmp byte [rax + 0x19], 2
jb 0x140029002
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x25
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov r15d, edi
cmp r13, r12
je 0x1400290cc
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140029064
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140029064
test byte [rax + 0x1c], 4
je 0x140029064
cmp byte [rax + 0x19], 2
jb 0x140029064
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x26
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
test r15d, r15d
je 0x1400290cc
mov dword [rsp + 0x98], r15d
mov word [rsp + 0x9c], di
mov r9d, r15d
lea r8, [0x14008b4c0]
mov edx, 0xc
lea rcx, [rsp + 0x9c]
call fcn.140004280
lea r8, [rsp + 0x9c]
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.140069d80
nop
cmp qword [rsp + 0x90], 8
jb 0x1400290e1
mov rcx, qword [rsp + 0x78]
call fcn.140001180
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400018f0
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r8, [rsp + 0x48]
mov rdx, r13
mov ecx, 1
call fcn.140029318
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002914f
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140028f45
test byte [rcx + 0x1c], 4
je 0x140028f45
cmp byte [rcx + 0x19], 2
jb 0x140028f45
mov edx, 0x1f
jmp 0x140028f32
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
lea rax, str.schema.ini
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x14008b500]
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140004280
mov r13d, eax
test eax, eax
jns 0x1400291e8
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x1400291c8
test byte [rcx + 0x1c], 4
je 0x1400291c8
cmp byte [rcx + 0x19], 2
jb 0x1400291c8
mov edx, 0x20
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.140004328
mov eax, r13d
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1400291e0
movzx r15d, r13w
jmp 0x140029064
mov r15d, r13d
jmp 0x140029064
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xc0]
call fcn.14006b8bc
mov r13, rax
mov qword [rsp + 0x58], rax
cmp rax, r12
jne 0x140029257
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140029064
test byte [rcx + 0x1c], 4
je 0x140029064
cmp byte [rcx + 0x19], 2
jb 0x140029064
mov edx, 0x21
jmp 0x140029051
lea rcx, [rsp + 0x78]
call fcn.14002bfc0
nop
mov eax, dword [rsp + 0x88]
lea r8d, [rax + rax]
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14002900e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14002900e
test byte [rcx + 0x1c], 4
je 0x14002900e
cmp byte [rcx + 0x19], 2
jb 0x14002900e
mov edx, 0x23
mov r9d, eax
lea r8, [0x14008c238]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14002900e