Function at 0x14005ee20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10080
call fcn.1401110b0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x100d0], rbx
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov rbp, rcx
mov rcx, r9
call fcn.140013c70
mov rcx, rdi
test al, al
je 0x14005ee76
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.140109ef0
jmp 0x14005ee7b
call fcn.14010998c
cmp eax, 1
sete al
cmp word [r12], 0
jne 0x14005eeea
cmp word [rsi], 0
jne 0x14005eeea
cmp byte [0x140174dc0], 0
je 0x14005eedb
mov rcx, qword [0x140174de8]
test rcx, rcx
je 0x14005eebe
mov r8, qword [0x140174de0]
xor edx, edx
call fcn.14010ec60
mov rcx, qword [0x140174de8]
call fcn.140108f48
xor ebx, ebx
mov qword [0x140174de8], rbx
mov qword [0x140174de0], rbx
mov dword [0x140174df0], ebx
mov qword [0x140174df8], rbx
xor edx, edx
mov rcx, rbp
call fcn.14003ca30
jmp 0x14005f234
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov ebp, ebx
mov qword [rsp + 0x68], rbx
mov r15d, ebx
mov qword [rsp + 0x60], rbx
test al, al
jne 0x14005ef1c
mov rcx, rsi
call fcn.1400793d0
test al, al
je 0x14005ef1c
movzx edi, byte [rsp + 0x100c8]
jmp 0x14005f203
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14005f1ed
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, 0x7fff
cmp rcx, 0x8000
cmovae rcx, rax
lea r8, [rcx + rcx + 2]
mov rdx, r12
lea rcx, [rsp + 0x80]
call fcn.140109100
lea rcx, [rsp + 0x80]
call fcn.14010aae0
mov rax, rbx
cmp byte [0x140174dc0], al
je 0x14005efc0
mov rdx, qword [0x140174dd0]
lea rcx, [rsp + 0x60]
call fcn.14001b090
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.14010aae0
mov r15, qword [rsp + 0x60]
mov r13, rbx
mov r12, rbx
mov rsi, qword [0x140174de8]
test rsi, rsi
je 0x14005efde
mov rdi, qword [0x140174df8]
jmp 0x14005f0ff
lea rdx, [rsp + 0x80]
test rax, rax
cmovne rdx, rax
xor ecx, ecx
lea r8d, [rcx + 0xa]
push rax
call 0x14032bf36
mov r13, rax
test rax, rax
je 0x14005f1ed
mov rdx, rax
xor ecx, ecx
call 0x1403a9cac
int3
cmp byte [0x140174dc0], 0
je 0x14005f1be
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
test rdi, rdi
je 0x14005f1a5
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400aaaf0
test eax, eax
je 0x14005f15e
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x14005f1a5
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x100c8]
mov r8d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
test rbx, rbx
je 0x14005f1f5
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rbx
call fcn.14010ec60
mov rcx, rbx
call fcn.140108f48
jmp 0x14005f1f5
test rbx, rbx
je 0x14005f1ed
xor edx, edx
mov rcx, rbx
call fcn.14010ec60
mov rcx, rbx
call fcn.140108f48
jmp 0x14005f1ed
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x100c8]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
jmp 0x14005f1f5
movzx edi, byte [rsp + 0x100c8]
test r14, r14
je 0x14005f203
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
sete dl
mov rcx, qword [rsp + 0x100c0]
call fcn.14003ca30
mov edi, eax
test rbp, rbp
je 0x14005f232
mov r8, r15
xor edx, edx
mov rcx, rbp
call fcn.14010ec60
mov rcx, rbp
call fcn.140108f48
mov eax, edi
mov rbx, qword [rsp + 0x100d0]
add rsp, 0x10080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret