Function at 0x100037058
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14b, r9b
mov r12d, r8d
mov r9, rdx
mov rdi, rcx
xor r15d, r15d
cmp rcx, r15
je 0x1000373dc
cmp rdx, r15
je 0x1000373dc
mov qword [rax - 0x68], r15
mov dword [rsp + 0x44], r15d
lea r8, [rsp + 0x44]
lea rdx, [rax - 0x68]
mov rcx, r9
call fcn.10006700c
mov rbp, qword [rsp + 0x70]
cmp rbp, r15
je 0x1000373c4
mov r13d, dword [rsp + 0x44]
cmp r13d, r15d
je 0x1000373c4
lea ebx, [r15 + 0x65]
mov dword [rsp + 0x20], ebx
mov r9b, 1
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call fcn.10004840c
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x10003711e
mov r8, rdi
lea rdx, [0x100017930]
mov ecx, 0x10000001
call fcn.10005e464
mov rcx, rbp
call sub.msvcrt.dll_free
xor al, al
jmp 0x1000373f7
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], r15d
mov dword [rsp + 0x60], 0x10
mov qword [rsp + 0x68], r15
mov rcx, qword [0x1000b10c0]
cmp rcx, r15
je 0x100037169
cmp dword [rcx + 0xd4], r15d
je 0x100037169
lea rax, [0x100017980]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov edx, 0x100
lea r8d, [rdx - 0x40]
call fcn.10003b784
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.100064be8
mov rbx, rax
mov rcx, qword [0x1000b1090]
mov r8, qword [rcx]
lea rdx, [rsp + 0xa0]
call qword [r8 + 0x10]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x58]
neg eax
sbb r8, r8
lea rax, [rsp + 0x58]
and r8, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.100048b60
cmp eax, r15d
sete bl
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
cmp bl, r15b
je 0x100037226
mov r8, rdi
lea rdx, [0x1000179c0]
mov ecx, 0x80
call fcn.10005e464
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.1000480f8
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003721f
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x1000373f7
lea ebx, [r13 + r13]
lea eax, [rbx + 2]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
jne 0x10003729c
mov r8, rdi
lea rdx, [0x100017a50]
mov ecx, 0x80
call fcn.10005e464
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.1000480f8
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x100037295
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x1000373f7
mov dword [rsp + 0x40], r15d
mov byte [rsp + 0xe0], 0xff
mov byte [rsp + 0xe1], 0xfe
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x100037385
cmp dword [rsp + 0x40], 2
jne 0x100037385
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x100037346
mov rcx, r13
add rcx, rcx
mov eax, dword [rsp + 0x48]
cmp rax, rcx
jne 0x100037346
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, r14b
mov edx, r12d
mov rcx, rsi
call fcn.1000480f8
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003733f
call qword [sym.imp.msvcrt.dll_free]
mov al, 1
jmp 0x1000373f7
mov r8, rdi
lea rdx, [0x100017b50]
mov ecx, 0x80
call fcn.10005e464
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.1000480f8
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x100037381
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x1000373f7
mov r8, rdi
lea rdx, [0x100017ad0]
mov ecx, 0x80
call fcn.10005e464
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.1000480f8
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x1000373c0
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x1000373f7
mov r8, rdi
lea rdx, [0x1000178a0]
mov ecx, 0x10000001
call fcn.10005e464
xor al, al
jmp 0x1000373f7
mov dword [rsp + 0x20], r8d
mov r8, rcx
lea rdx, [0x1000177f0]
mov ecx, 0x80
call fcn.10005e464
xor al, al
lea r11, [rsp + 0xb0]
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