Function at 0x10000a814
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, rcx
lea rcx, [rax - 0x60]
call fcn.10000d964
mov rbp, rax
mov qword [rsp + 0x60], rax
xor r13d, r13d
mov qword [rsp + 0x68], r13
and dword [rsp + 0x38], r13d
lea rcx, [rsp + 0x70]
call fcn.10000d964
mov rsi, rax
mov qword [rsp + 0x78], rax
and qword [rsp + 0x80], r13
call fcn.100009fd8
mov edi, eax
test eax, eax
jns 0x10000a8d7
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x10000a8a4
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rsi
jne 0x10000a894
mov rcx, rsi
call fcn.100011990
nop
mov rcx, qword [rbp]
mov qword [rbp], rbp
mov qword [rbp + 8], rbp
cmp rcx, rbp
je 0x10000ade5
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rbp
jne 0x10000a8c2
jmp 0x10000ade5
lea rax, [rsp + 0x58]
test rax, rax
je 0x10000a901
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.100009a7c
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
jmp 0x10000a906
mov eax, 0x80070057
test eax, eax
je 0x10000a96f
lea rdx, [0x100003c40]
mov ecx, 4
call fcn.100006e7c
nop
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x10000a93b
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rsi
jne 0x10000a92b
mov rcx, rsi
call fcn.100011990
nop
mov rcx, qword [rbp]
mov qword [rbp], rbp
mov qword [rbp + 8], rbp
cmp rcx, rbp
je 0x10000a965
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rbp
jne 0x10000a955
mov edi, 0x80004005
jmp 0x10000ade5
mov dword [rsp + 0x40], r13d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r12d, 4
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a9ae
lea rdx, [0x1000035c8]
mov ecx, r12d
call fcn.100006e7c
jmp 0x10000ad6f
mov rbx, qword [rbp]
mov rdi, qword [rsi]
and dword [rsp + 0x3c], 0
test r13, r13
je 0x10000ad9a
or r15d, 0xffffffff
mov r9d, r15d
mov r8d, 0xd
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r8, qword [rdi + 0x10]
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a704
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 2
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 3
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, r12d
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
mov r13d, eax
test eax, eax
js 0x10000ad21
mov r9d, r15d
mov r8d, 5
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 6
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 8
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 7
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 9
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 0xc
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
mov r9d, r15d
mov r8d, 0xe
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
test eax, eax
js 0x10000ad6f
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x10000ab40
or dword [rsp + 0x20], 0xffffffff
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
lea edx, [r15 + 2]
call fcn.10000a1ac
mov r15d, dword [rsp + 0x30]
jmp 0x10000ab45
mov eax, 0x80070057
test eax, eax
js 0x10000ad6f
lea ecx, [r15 + 0x7f]
call fcn.1000118f0
mov r13, rax
test rax, rax
je 0x10000ad10
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x7f]
mov r8d, r15d
mov edx, 2
mov ecx, dword [rbx + 0x10]
call fcn.10000a0c4
mov dword [rsp + 0x30], eax
test eax, eax
js 0x10000acec
lea r15, [r13 + 0x18]
test r15, r15
je 0x10000acd0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000acb4
and dword [rsp + 0x34], 0
cmp byte [r15], 0
jbe 0x10000ac60
lea rcx, [r15 + 4]
mov qword [rsp + 0x50], rcx
mov rax, qword [rcx]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, r12d
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000ac98
mov r8d, dword [rsp + 0x48]
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a3e4
mov dword [rsp + 0x30], eax
test eax, eax
js 0x10000ac8e
mov r9d, dword [rsp + 0x48]
mov r8d, 0xa
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.10000a504
mov dword [rsp + 0x30], eax
test eax, eax
js 0x10000ad6f
mov edx, dword [rsp + 0x34]
inc edx
mov dword [rsp + 0x34], edx
mov rcx, qword [rsp + 0x50]
add rcx, 8
mov qword [rsp + 0x50], rcx
movzx eax, byte [r15]
cmp edx, eax
jb 0x10000abd6
mov rcx, r13
call fcn.100011990
mov rbx, qword [rbx]
mov rdi, qword [rdi]
mov r15d, dword [rsp + 0x3c]
inc r15d
mov dword [rsp + 0x3c], r15d
mov eax, r15d
cmp rax, qword [rsp + 0x68]
jae 0x10000ad03
or r15d, 0xffffffff
jmp 0x10000a9c7
mov rcx, r13
call fcn.100011990
jmp 0x10000ad03
lea rdx, [0x1000035c8]
mov ecx, r12d
call fcn.100006e7c
mov rcx, r13
call fcn.100011990
jmp 0x10000ad6f
lea rdx, [0x1000035c8]
mov ecx, r12d
call fcn.100006e7c
mov rcx, r13
call fcn.100011990
jmp 0x10000ad6f
lea rdx, [0x100003bf0]
mov ecx, r12d
call fcn.100006e7c
mov rcx, r13
call fcn.100011990
jmp 0x10000ad6f
lea rdx, [0x100003bf0]
mov ecx, r12d
call fcn.100006e7c
mov rcx, r13
call fcn.100011990
cmp dword [rsp + 0x30], 0
jge 0x10000ad9a
jmp 0x10000ad6f
lea rdx, [0x100003be0]
mov ecx, r12d
call fcn.100006e7c
jmp 0x10000ad6f
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x10000ad40
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rsi
jne 0x10000ad30
mov rcx, rsi
call fcn.100011990
nop
mov rcx, qword [rbp]
mov qword [rbp], rbp
mov qword [rbp + 8], rbp
cmp rcx, rbp
je 0x10000ad6a
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rbp
jne 0x10000ad5a
mov edi, r13d
jmp 0x10000ade5
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x10000ad9a
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x10000ad89
call fcn.100011990
mov rcx, qword [rbx + 0x10]
call fcn.100011990
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x10000ad77
mov rcx, qword [rsi]
mov qword [rsi], rsi
mov qword [rsi + 8], rsi
cmp rcx, rsi
je 0x10000adb9
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rsi
jne 0x10000ada9
mov rcx, rsi
call fcn.100011990
nop
mov rcx, qword [rbp]
mov qword [rbp], rbp
mov qword [rbp + 8], rbp
cmp rcx, rbp
je 0x10000ade3
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rbp
jne 0x10000add3
xor edi, edi
mov rcx, rbp
call fcn.100011990
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret