Function at 0x140001554
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
and dword [rsp + 0x20], 0
mov rbx, r8
cmp dword [rdx + 4], 0x14
mov r14, rdx
mov rsi, rcx
je 0x14000159c
mov r9, qword [rcx + 0x18]
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov ecx, 0x422
mov r8d, 0x129
call fcn.1400059ac
mov r13d, 0xa
mov ebp, 0x32
mov r12d, dword [r14 + 0x54]
mov ecx, r12d
mov r15d, r12d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400015d4
mov r8d, 0xe4
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
lea ecx, [rax + 2]
call fcn.140005a2c
mov r8, r15
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x24], 0
mov eax, dword [r14 + 0xc]
cmp r12d, eax
jae 0x1400015fe
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400015a7
mov eax, dword [rdi + 0x64]
test eax, eax
je 0x140001621
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
sub ebp, eax
test ebp, ebp
jle 0x14000176e
jmp 0x1400015a7
mov r12d, 1
mov r9, rbx
mov r8d, r12d
mov byte [rsp + 0x78], r12b
mov rdx, r15
mov word [rdi + 0x60], r12w
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r12
jne 0x1400016b2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
test eax, eax
jne 0x1400016b2
xor r8d, r8d
lea edx, [rax + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400016b2
mov rcx, qword [rsp + 0x88]
lea edx, [rax + 0x10]
mov r9, rbx
mov r8d, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r12
jne 0x1400016b2
xor r8d, r8d
lea edx, [r12 + 0x51]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400016b2
mov r9, rbx
lea rcx, [rsp + 0x78]
mov r8d, r12d
mov edx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r12
je 0x1400016cd
mov r9, qword [rsi + 0x18]
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov r8d, 0x113
mov ecx, 0x5b
call fcn.1400059ac
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x64]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400016fc
mov r9, rbx
lea r8d, [rax + 4]
mov rdx, r12
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
je 0x140001717
mov r9, qword [rsi + 0x18]
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov r8d, 0x136
mov ecx, 0x5b
call fcn.1400059ac
cmp dword [rsp + 0x20], 0
je 0x14000175e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14000174b
mov r9, qword [rsi + 0x18]
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov r8d, 0x142
mov ecx, 0x5b
call fcn.1400059ac
sub r13d, r12d
test r13d, r13d
jg 0x1400015a2
mov eax, 2
jmp 0x14000176e
cmp byte [rsi + 1], 0
je 0x14000176c
mov rcx, r14
call fcn.140005b44
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret