Function at 0x14000107c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x380], rax
cmp qword [0x14007c650], 0
mov rbx, rdx
je 0x14000133f
xor eax, eax
lea rcx, [case.0x140057a70.2]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
mov eax, dword [rdx + 4]
movups xmmword [rsp + 0x58], xmm0
cmp eax, 9
ja 0x140001172
je 0x140001169
sub eax, 1
je 0x140001160
sub eax, 1
je 0x140001154
sub eax, 1
je 0x140001148
sub eax, 1
je 0x14000113c
sub eax, 1
je 0x140001130
sub eax, 1
je 0x140001124
sub eax, 1
je 0x140001118
cmp eax, 1
jne 0x1400011e0
lea rcx, [0x140060d90]
jmp 0x1400011e0
lea rcx, [0x140060d80]
jmp 0x1400011e0
lea rcx, [0x140060d70]
jmp 0x1400011e0
lea rcx, [0x140060d60]
jmp 0x1400011e0
lea rcx, str.HardLinkFile
jmp 0x1400011e0
lea rcx, [0x140060d40]
jmp 0x1400011e0
lea rcx, [0x140060d30]
jmp 0x1400011e0
lea rcx, [0x140060d20]
jmp 0x1400011e0
lea rcx, [0x140060da8]
jmp 0x1400011e0
sub eax, 0xa
je 0x1400011d9
sub eax, 1
je 0x1400011d0
sub eax, 1
je 0x1400011c7
sub eax, 1
je 0x1400011be
sub eax, 1
je 0x1400011b5
sub eax, 1
je 0x1400011ac
sub eax, 2
je 0x1400011a3
cmp eax, 2
jne 0x1400011e0
lea rcx, str.SetKeyInfos
jmp 0x1400011e0
lea rcx, [0x140060e28]
jmp 0x1400011e0
lea rcx, [0x140060e10]
jmp 0x1400011e0
lea rcx, [0x140060df8]
jmp 0x1400011e0
lea rcx, [0x140060de8]
jmp 0x1400011e0
lea rcx, [0x140060dd8]
jmp 0x1400011e0
lea rcx, [0x140060dc8]
jmp 0x1400011e0
lea rcx, [0x140060db8]
mov eax, dword [rdx + 8]
lea r8, str._llx:__lx___lx___Ix___lx___s__
mov r9, qword [0x14007c648]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], eax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov eax, dword [rdx]
mov edx, 0x400
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x8ce
call qword [sym.imp.ntdll.dll_sprintf_s]
nop dword [rax + rax]
lea rcx, [rbx + 0x18]
mov edi, eax
lea rdx, [rsp + 0x58]
call fcn.1400511c0
mov rcx, qword [rsp + 0x58]
mov eax, 0xffffffff
cmp rcx, rax
mov dword [rsp + 0x50], eax
cmova rcx, rax
or dword [rsp + 0x54], 0xffffffff
mov qword [rsp + 0x58], rcx
cmp edi, 0xffffffff
je 0x140001330
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x14007c650]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x14007c650]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov eax, dword [rsp + 0x58]
xor edx, edx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [0x14007c650]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [0x140060e68]
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000133f
call fcn.140056488
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14005cab0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret