Function at 0x140060b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x140060b72
cmp qword [rdx + 0x18], 8
jb 0x140060b66
mov rdx, qword [rdx]
lea rcx, str.StructToFile__ls
call fcn.14003c5f0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x1400a1b60]
movdqu xmmword [rsp + 0x60], xmm0
lea rax, [rsp + 0x40]
mov qword [rbp + 0x30], rax
xor esi, esi
mov qword [rbp + 0x38], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x60], 0x200
mov dword [rbp + 0x68], 0x144
mov byte [rbp + 0x6c], sil
mov r14d, 0x20
mov word [rbp + 0x70], r14w
mov qword [rbp + 0x74], 4
mov rax, qword [rdi]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call qword [rax + 0x18]
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov word [rbp - 0x72], si
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x1400a1b70]
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], esi
mov qword [rbp - 0x28], rsi
lea ecx, [rsi + 0x28]
call fcn.14003c848
mov qword [rbp + 0x1d8], rax
test rax, rax
je 0x140060c45
mov qword [rax], rsi
mov qword [rax + 8], 0x10000
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
jmp 0x140060c48
mov rax, rsi
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + 2]
cmp rax, qword [rsp + 0x60]
jbe 0x140060c74
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14003e550
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + 2]
mov qword [rsp + 0x58], rax
mov word [rcx], si
sub qword [rsp + 0x58], 2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140040660
cmp qword [rbx + 0x18], 8
jb 0x140060cad
mov rbx, qword [rbx]
lea r8, [0x14009de74]
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rax, qword [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x1c8], rax
lea rax, [rbp + 0x1c8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp], xmm1
mov qword [rbp + 0x10], 0x200
mov dword [rbp + 0x18], 0x144
mov byte [rbp + 0x1c], 0
mov word [rbp + 0x20], r14w
mov qword [rbp + 0x24], 4
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.14003d9a0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
cmp r8, rcx
je 0x140060d78
sub r8, rcx
mov r9, qword [rsp + 0x20]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fclose_nolock]
nop
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp - 0x10]
call fcn.14003c884
nop
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x140060df8
mov rcx, qword [rdi]
test rcx, rcx
je 0x140060dcb
cmp rcx, qword [rdi + 0x10]
je 0x140060dcb
mov rbx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
mov rcx, rbx
test rbx, rbx
jne 0x140060db0
mov rax, qword [rdi]
test rax, rax
je 0x140060ddd
cmp rax, qword [rdi + 0x10]
jne 0x140060ddd
mov qword [rax + 8], rsi
mov edx, 1
mov rcx, qword [rdi + 0x20]
call fcn.14003c884
mov edx, 0x28
mov rcx, rdi
call fcn.14003c884
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp - 0x58]
call fcn.14003c884
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp + 0x40]
call fcn.14003c884
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14003c884
mov al, 1
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret