Function at 0x140037e40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x158
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x130], 0
mov rax, rsp
mov qword [rax + 0x20], rdx
xor eax, eax
mov edx, eax
mov r8d, 1
lea r9, [rsp + 0x130]
call fcn.140037820
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x12c]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x12c], 0
je 0x140037f52
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x138], edx
mov dword [rsp + 0x13c], ecx
mov rcx, qword [rsp + 0x140]
mov edx, dword [rsp + 0x138]
mov r8d, dword [rsp + 0x13c]
mov dword [rsp + 0x13c], r8d
mov dword [rsp + 0x138], edx
mov qword [rax], rcx
mov rax, qword [rsp + 0x138]
add rsp, 0x158
ret
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x110], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x108], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x140037ff8
mov rcx, qword [rsp + 0x108]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.E:_Odin_core_os_file_windows.odin
mov edx, 0x104
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140029410
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 0x40000000
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xe0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xd0], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0xe4], edx
mov dword [rsp + 0xe0], ecx
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0xe0]
mov r9d, dword [rsp + 0xe4]
mov r10, qword [rsp + 0xe8]
mov qword [rsp + 0xc8], r10
mov dword [rsp + 0xc4], r9d
mov dword [rsp + 0xc0], r8d
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xa4], 0
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x108]
mov r8d, eax
lea r9, [rsp + 0xa4]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
jne 0x140038141
call fcn.1400368d0
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
mov dword [rsp + 0x9c], ecx
mov dword [rsp + 0x98], eax
mov dword [rsp + 0xa4], 0
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0xa4]
mov edx, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x9c]
mov qword [rsp + 0x140], rcx
mov dword [rsp + 0x13c], r8d
mov dword [rsp + 0x138], edx
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x110]
mov qword [rsp + 0x88], 0
xor r8d, r8d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.140037820
mov rcx, rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rcx
add rsp, 0x158
ret