Function at 0x14011d3c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1419761c8]
xor rax, rsp
mov qword [rbp], rax
mov r14, rcx
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.140088cf0
nop
mov dword [rbp - 0x68], 0x18
xor edi, edi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], edi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140089540
nop
mov rcx, rax
call fcn.140036ca0
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x68]
mov edx, 0x40000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14011d477
cmp eax, ebx
je 0x14011d485
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d485
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
cmp rsi, 0xffffffffffffffff
jne 0x14011d54a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 5
je 0x14011d4eb
sub ecx, 0x1b
je 0x14011d4e1
sub ecx, 0x30
je 0x14011d4e1
cmp ecx, 0x67
je 0x14011d4e1
mov qword [rbp - 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
lea rcx, [0x1402b84e0]
mov qword [rbp - 0x38], rcx
mov r8d, eax
lea rdx, [0x1402925a8]
lea rcx, [rbp - 0x50]
call fcn.140028d60
lea edi, [rsi + 4]
jmp 0x14011d70c
mov edi, 1
jmp 0x14011d70c
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.140089540
nop
mov rcx, rax
call fcn.140036ca0
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb edi, edi
add edi, 2
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14011d540
cmp eax, 0xffffffff
je 0x14011d70c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d70c
mov rcx, qword [rsp + 0x58]
mov edx, 2
jmp 0x14011d700
mov qword [r14 + 8], rsi
lea rax, [0x140187f70]
mov qword [rsp + 0x40], rax
call fcn.140044b30
mov rdx, rax
mov r8d, 0xa
lea rcx, [rsp + 0x60]
call fcn.140023d40
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140023470
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14011d5a1
cmp eax, 0xffffffff
je 0x14011d5af
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d5af
mov rcx, qword [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140039ba0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140023540
lea rcx, [rsp + 0x70]
call fcn.140044a20
nop
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140004260
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140023470
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14011d602
cmp eax, 0xffffffff
je 0x14011d611
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d611
mov rcx, qword [rsp + 0x68]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140039ba0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14011d631
cmp eax, 0xffffffff
je 0x14011d63f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d63f
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140023540
lea rcx, [rsp + 0x78]
call fcn.14011d1d0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140023470
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14011d684
cmp eax, 0xffffffff
je 0x14011d692
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d692
mov rcx, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140039ba0
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140023540
mov dword [rsp + 0x48], edi
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, dword [rax + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14011d6d6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14011d6db
mov edi, 3
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14011d6fb
cmp eax, 0xffffffff
je 0x14011d70c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d70c
mov rcx, qword [rsp + 0x40]
mov edx, 1
mov r8d, 8
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14011d72a
cmp eax, 0xffffffff
je 0x14011d738
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011d738
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x14011d754
cmp eax, 0xffffffff
je 0x14011d762
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14011d762
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401202c0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret