Function at 0x140009690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov edx, dword [rcx + 0xc]
xor esi, esi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rcx
cmp rax, 4
jae 0x14000970d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009734
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x24]
mov rcx, rax
lea rdx, str.Insufficient_space_in_the_flattener.
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009734
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009734
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x10]
sub rax, rcx
cmp rax, 4
jae 0x14000978e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x1400097b5
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400097b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400097b5
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x14]
sub rax, rcx
cmp rax, 4
jae 0x14000980f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009836
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009836
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009836
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x18]
sub rax, rcx
cmp rax, 4
jae 0x140009890
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x1400098b7
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400098b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400098b7
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x1c]
sub rax, rcx
cmp rax, 4
jae 0x140009911
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009938
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009938
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009938
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x420]
sub rax, rcx
cmp rax, 4
jae 0x140009995
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x1400099bc
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400099bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400099bc
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x424]
sub rax, rcx
cmp rax, 4
jae 0x140009a19
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009a40
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009a40
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009a40
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x428]
sub rax, rcx
cmp rax, 4
jae 0x140009a9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009ac4
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009ac4
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 0x42c]
sub rax, rcx
cmp rax, 4
jae 0x140009b21
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009b48
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009b48
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov edx, dword [rdi + 8]
sub rax, rcx
cmp rax, 4
jae 0x140009ba2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009bc9
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009bc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009bc9
mov eax, edx
shr eax, 0x18
mov byte [rcx], al
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, edx
mov rax, qword [rbx]
shr ecx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx]
mov byte [rax + 3], dl
add qword [rbx], 4
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
movzx edx, byte [rdi + 0xc40]
sub rax, rcx
cmp rax, 1
jae 0x140009c27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009c2c
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009c2c
mov byte [rcx], dl
inc qword [rbx]
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
movzx edx, byte [rdi + 0xc41]
sub rax, rcx
cmp rax, 1
jae 0x140009c8a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009c8f
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009c8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009c8f
mov byte [rcx], dl
inc qword [rbx]
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
movzx edx, byte [rdi + 0xc42]
sub rax, rcx
cmp rax, 1
jae 0x140009ced
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009cf2
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009cf2
mov byte [rcx], dl
inc qword [rbx]
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
movzx r9d, byte [rdi + 0xc43]
sub rax, rdx
cmp rax, 1
jae 0x140009d51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbp - 0x10], esi
cmp rax, 0xffffffffffffffff
je 0x140009d57
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8d, 0x24
lea rdx, str.Insufficient_space_in_the_flattener.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140009d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009d57
mov byte [rdx], r9b
inc qword [rbx]
lea r8, [rdi + 0x220]
mov r9d, 0xff
mov rdx, rbx
call fcn.140009ee0
lea r8, [rdi + 0x438]
mov r9d, 0x403
mov rdx, rbx
call fcn.140009ee0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140183d70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret