Function at 0x140028184
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x40], rcx
lea r14, [0x14009b028]
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400281f3
test byte [rcx + 0x1c], 4
je 0x1400281f3
cmp byte [rcx + 0x19], 5
jb 0x1400281f3
mov edx, 0x1b
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
or r13, 0xffffffffffffffff
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
xor ebx, ebx
mov r15d, ebx
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
cmp dword [0x14009f00c], ebx
jne 0x14002828f
call fcn.14002a7ec
mov r12d, eax
test eax, eax
je 0x140028285
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140028265
test byte [rcx + 0x1c], 4
je 0x140028265
cmp byte [rcx + 0x19], 2
jb 0x140028265
lea edx, [rbx + 0x1c]
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
nop
cmp qword [rsp + 0xa8], 8
jb 0x14002827d
mov rcx, qword [rsp + 0x90]
call fcn.14007e7a4
mov eax, r12d
jmp 0x1400284d0
mov dword [0x14009f00c], 1
mov rcx, qword [rsp + 0x40]
call fcn.14006a2f8
mov r12d, eax
test eax, eax
je 0x1400282d8
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140028265
test byte [rcx + 0x1c], 4
je 0x140028265
cmp byte [rcx + 0x19], 2
jb 0x140028265
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001328
jmp 0x140028265
lea r8, [rsp + 0x58]
mov r12, qword [rsp + 0x40]
mov rdx, r12
xor ecx, ecx
call fcn.14002b07c
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400284f2
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14002832c
test byte [rcx + 0x1c], 4
je 0x14002832c
cmp byte [rcx + 0x19], 2
jb 0x14002832c
mov edx, 0x1e
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov eax, dword [rsp + 0x40]
mov r12, r13
test eax, eax
je 0x1400283f1
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x140028394
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x140028394
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140028394
test byte [rax + 0x1c], 4
je 0x140028394
cmp byte [rax + 0x19], 2
jb 0x140028394
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x24
lea r8, [0x140088d60]
mov rcx, qword [0x14009b028]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x1400283f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400283f1
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x1400283f1
test byte [rax + 0x1c], 4
je 0x1400283f1
cmp byte [rax + 0x19], 2
jb 0x1400283f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x25
mov rcx, qword [0x14009b028]
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
cmp r12, r13
je 0x14002844c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14002844c
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14002844c
test byte [rax + 0x1c], 4
je 0x14002844c
cmp byte [rax + 0x19], 2
jb 0x14002844c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x26
mov rcx, qword [0x14009b028]
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
test r15d, r15d
je 0x1400284b4
mov dword [rsp + 0xb0], r15d
mov word [rsp + 0xb4], bx
mov r9d, r15d
lea r8, [0x140087fd0]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0xb4]
call fcn.140002ac0
lea r8, [rsp + 0xb4]
test eax, eax
cmovs r8, rbx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov edx, 2
lea ecx, [rdx - 1]
mov r9d, 0x80007d4d
mov r8d, edx
call fcn.140067590
nop
cmp qword [rsp + 0xa8], 8
jb 0x1400284cc
mov rcx, qword [rsp + 0x90]
call fcn.14007e7a4
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
lea r8, [rsp + 0x50]
mov rdx, r12
mov ecx, 1
call fcn.14002b07c
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002853a
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14002832c
test byte [rcx + 0x1c], 4
je 0x14002832c
cmp byte [rcx + 0x19], 2
jb 0x14002832c
mov edx, 0x1f
jmp 0x140028315
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, r12
lea r8, [0x140088010]
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.140002ac0
mov r12d, eax
test eax, eax
jns 0x1400285d2
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400285b3
test byte [rcx + 0x1c], 4
je 0x1400285b3
cmp byte [rcx + 0x19], 2
jb 0x1400285b3
mov edx, 0x20
mov r9d, eax
lea r8, [0x140088d60]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov ecx, r12d
and ecx, 0x1fff0000
movzx eax, r12w
mov r15d, r12d
cmp ecx, 0x70000
cmove r15d, eax
jmp 0x14002844c
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xd0]
call fcn.140069cbc
mov r12, rax
mov qword [rsp + 0x60], rax
cmp rax, r13
jne 0x140028641
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14002844c
test byte [rcx + 0x1c], 4
je 0x14002844c
cmp byte [rcx + 0x19], 2
jb 0x14002844c
mov edx, 0x21
jmp 0x140028439
lea rcx, [rsp + 0x88]
call fcn.140027ecc
nop
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rdx, qword [rsp + 0x90]
mov r8d, dword [rsp + 0xa0]
add r8d, r8d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400283f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400283f1
test byte [rcx + 0x1c], 4
je 0x1400283f1
cmp byte [rcx + 0x19], 2
jb 0x1400283f1
mov edx, 0x23
jmp 0x1400283de