Function at 0x10006e344
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x148
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov rbp, rcx
mov r14, qword [rsp + 0x1b0]
lea rax, [fcn.10016e648]
mov qword [rsp + 0x20], rax
lea r9, [0x10016e388]
mov edx, 0x18
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x40]
call fcn.10017a408
nop
lea rdx, [0x10002a3f8]
lea rcx, [rsp + 0x40]
call fcn.10016e658
lea rdx, [0x10002a410]
lea rcx, [rsp + 0x58]
call fcn.10016e658
lea rdx, [0x10002a428]
lea rcx, [rsp + 0x70]
call fcn.10016e658
lea rdx, [0x10002a440]
lea rcx, [rsp + 0x88]
call fcn.10016e658
lea rsi, [0x10002a458]
lea rbx, [0x10002a468]
mov r8, rbx
xor edi, edi
cmp byte [rbp + 0x14], dil
cmovne r8, rsi
lea rdx, [0x10002a480]
lea rcx, [rsp + 0xa0]
call fcn.10016e8bc
cmp byte [rbp + 0x15], dil
cmovne rbx, rsi
mov r8, rbx
lea rdx, [0x10002a4a0]
lea rcx, [rsp + 0xb8]
call fcn.10016e8bc
mov r8d, dword [rbp + 0x18]
lea rdx, [0x10002a4c0]
lea rcx, [rsp + 0xd0]
call fcn.10016e8bc
lea rdx, [0x10002a4e8]
lea rcx, [rsp + 0xe8]
call fcn.10016e658
lea rdx, [0x10002a504]
lea rcx, [rsp + 0x100]
call fcn.10016e658
lea r8, [0x10002a508]
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wfopen_s]
cmp qword [rsp + 0x30], rdi
jne 0x10006e4bf
lea r9, [fcn.10016e648]
lea edx, [rdi + 0x18]
lea r8d, [rdi + 9]
lea rcx, [rsp + 0x40]
call fcn.10017a4cc
xor al, al
jmp 0x10006e6ec
mov ebx, 0x2028
mov rcx, rbx
call fcn.100179d98
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rsi], 0x484d4752
mov dword [rsi + 4], 1
mov dword [rsi + 8], ebx
mov dword [rsp + 0x120], 0xe2856b15
mov eax, 0xa196
mov word [rsp + 0x124], ax
mov eax, 0x4c82
mov word [rsp + 0x126], ax
mov byte [rsp + 0x128], 0xbd
mov byte [rsp + 0x129], 0xa1
mov byte [rsp + 0x12a], 0xc7
mov byte [rsp + 0x12b], 0x5d
mov byte [rsp + 0x12c], 0x27
mov byte [rsp + 0x12d], 0x3d
mov byte [rsp + 0x12e], 0xf9
mov byte [rsp + 0x12f], 0x89
movdqu xmm0, xmmword [rsp + 0x120]
movdqu xmmword [rsi + 0x18], xmm0
cmp r12, rdi
je 0x10006e56f
mov qword [rsi + 0xc], rdi
mov eax, dword [r12]
mov dword [rsi + 0x14], eax
cmp r13, rdi
je 0x10006e585
lea rcx, [rsi + 0x28]
mov r8, r13
mov edx, 0x3ff
call sub.msvcrt.dll_wcscpy_s
cmp r14, rdi
je 0x10006e59e
lea rcx, [rsi + 0x828]
mov r8, r14
mov edx, 0x3ff
call sub.msvcrt.dll_wcscpy_s
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov r13d, 1
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp rax, rbx
je 0x10006e5e6
mov rcx, rsi
call sub.msvcrt.dll_free
nop
lea r9, [fcn.10016e648]
lea edx, [r13 + 0x17]
lea r8d, [r13 + 8]
lea rcx, [rsp + 0x40]
call fcn.10017a4cc
xor al, al
jmp 0x10006e6ec
cmp r12, rdi
je 0x10006e637
mov ebx, dword [r12]
mov r8, rbx
mov r9, qword [rsp + 0x30]
mov rdx, r13
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.msvcrt.dll_fwrite]
cmp rax, rbx
mov rax, rbx
je 0x10006e637
mov rcx, rsi
call sub.msvcrt.dll_free
nop
lea r9, [fcn.10016e648]
mov edx, 0x18
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x40]
call fcn.10017a4cc
xor al, al
jmp 0x10006e6ec
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rsp + 0x30], rdi
lea r8, [0x10002a3b4]
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wfopen_s]
mov rdx, qword [rsp + 0x30]
cmp rdx, rdi
jne 0x10006e671
jmp 0x10006e6cf
lea rbx, [rsp + 0x50]
mov esi, 9
mov r8, qword [rbx]
mov rcx, rbp
call fcn.10006e100
add rbx, 0x18
sub rsi, r13
je 0x10006e696
mov rdx, qword [rsp + 0x30]
jmp 0x10006e67b
cmp dword [rbp + 8], edi
jle 0x10006e6c0
mov rbx, rdi
mov rax, qword [rbp]
mov r8, qword [rax + rbx + 0x10]
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.10006e100
add edi, r13d
add rbx, 0x18
cmp edi, dword [rbp + 8]
jl 0x10006e69e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fclose]
nop
mov dil, r13b
lea r9, [fcn.10016e648]
mov edx, 0x18
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x40]
call fcn.10017a4cc
mov al, dil
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10017a260
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret