Function at 0x10000a2b0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x970
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov ecx, 0x40e
xor sil, sil
call fcn.10000c240
test rax, rax
je 0x10000a7b4
mov qword [rsp + 0x960], r13
lea rcx, [rsp + 0xb0]
xor r13d, r13d
mov edx, 0x98
mov word [rsp + 0x4e0], r13w
call qword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov rax, qword [0x10002eea0]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [0x100019698]
mov dword [rsp + 0xb0], 0x98
mov qword [rsp + 0xc0], rax
lea rax, [0x100004f18]
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x4e0]
mov dword [rsp + 0xe8], 0x104
mov qword [rsp + 0xe0], rax
lea rax, [0x100004ed0]
mov dword [rsp + 0x110], 0x2000002
mov qword [rsp + 0x108], rax
lea rax, [0x100004ec8]
mov qword [rsp + 0x118], rax
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x10000a7a0
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x4e0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x990], rbp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x10000a42e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2e0]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x4e0]
lea rcx, [0x100004e98]
call fcn.10000c150
mov al, sil
mov rbp, qword [rsp + 0x990]
mov r13, qword [rsp + 0x960]
add rsp, 0x970
pop rsi
ret
lea r9, [rsp + 0x980]
lea rdx, [0x100004e94]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a492
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2e0]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x4e0]
lea rcx, [0x100004e50]
call fcn.10000c150
jmp 0x10000a74d
lea rcx, [rsp + 0x150]
call fcn.10000e180
test al, al
je 0x10000a74d
lea rcx, [rsp + 0x1a0]
mov dword [rsp + 0x1a0], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10000a74d
mov qword [rsp + 0x988], rbx
mov qword [rsp + 0x998], rdi
call fcn.100013ed0
lea rbx, [0x100004e44]
cmp word [rax], r13w
je 0x10000a50b
call fcn.100013ed0
lea rdx, [0x100004e38]
lea rcx, [rsp + 0x6f0]
mov r8, rax
call fcn.1000097d0
mov rdi, rax
jmp 0x10000a50e
mov rdi, rbx
call fcn.100013ec0
cmp eax, 0xffffffff
je 0x10000a537
call fcn.100013ec0
lea rdx, [0x100004e30]
lea rcx, [rsp + 0x2c0]
mov r8d, eax
call fcn.100009790
mov rbx, rax
mov eax, dword [rsp + 0x150]
test al, 2
je 0x10000a54b
lea r9, [0x1000049a8]
jmp 0x10000a55f
test al, 1
lea r9, [0x100004988]
lea rax, [0x100004998]
cmovne r9, rax
movzx eax, byte [rsp + 0x2ba]
movzx ecx, word [rsp + 0x2b8]
movzx edx, word [rsp + 0x2b6]
movzx r8d, word [rsp + 0x2b4]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x98], ecx
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x1b4]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x1ac]
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x78], r8d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x1a8]
lea r8, [0x100004d20]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x1a4]
lea rcx, [rsp + 0x760]
mov dword [rsp + 0x50], eax
mov eax, dword [0x100007dd4]
mov edx, 0x100
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x160]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x15c]
lea r9, [0x1000049b8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x154]
mov dword [rsp + 0x20], eax
call fcn.1000151f0
lea r9, [rsp + 0x980]
lea rdx, [rsp + 0x760]
lea r8d, [rax + rax]
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a6a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2e0]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x4e0]
lea rcx, [0x100004cd0]
call fcn.10000c150
jmp 0x10000a73d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov ecx, 0x40e
mov qword [rsp + 0x968], r12
call fcn.10000c240
mov edi, r13d
mov r12, rax
test eax, eax
je 0x10000a732
nop dword [rax + rax]
lea r9, [rsp + 0x760]
mov r8d, edi
mov edx, 0x148
mov ecx, 0x40e
call fcn.10000c240
lea rdx, [0x100004cc8]
mov ecx, eax
mov rbx, rax
lea rcx, [rsp + rcx*2 + 0x760]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8d, [rbx + rbx + 4]
lea r9, [rsp + 0x980]
lea rdx, [rsp + 0x760]
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a763
inc edi
cmp edi, r12d
jb 0x10000a6d0
mov sil, 1
mov r12, qword [rsp + 0x968]
mov rdi, qword [rsp + 0x998]
mov rbx, qword [rsp + 0x988]
test rbp, rbp
je 0x10000a75b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
jmp 0x10000a415
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2e0]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea edx, [rdi + 1]
lea r9, [rsp + 0x2e0]
lea r8, [rsp + 0x4e0]
lea rcx, [0x100004c80]
call fcn.10000c150
jmp 0x10000a735
mov al, sil
mov r13, qword [rsp + 0x960]
add rsp, 0x970
pop rsi
ret
mov al, sil
add rsp, 0x970
pop rsi
ret