Function at 0x140046020
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, qword [rcx + 0x330]
mov r10d, dword [rbx + 0x18]
lea eax, [r8 - 1]
mov edi, r8d
mov r12, rcx
cmp eax, 0x20
mov eax, 0x22
mov rsi, rdx
cmovbe edi, eax
test r10d, r10d
jne 0x1400462c0
cmp byte [r12 + 0x546], 0
je 0x1400461c0
mov r8d, dword [rbx + 0x38]
test r8d, r8d
jne 0x1400461d0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400461c0
cmp qword [rbx + 0x48], 0
je 0x140046142
lea rbp, str..cm
mov rdx, rbp
call fcn.1400458a0
mov r12, rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rsi
mov rcx, r12
mov r13, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov rdx, rsi
mov ecx, 0x3a
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rcx, qword [rbx + 0x48]
mov r9d, edi
mov rdx, rsi
lea r8d, [r13 + 1]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call fcn.1400459d0
mov rdx, rsi
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
lea rdx, str..PHONY:
mov rcx, rsi
call fcn.14009cc40
mov rcx, qword [rbx + 0x40]
mov r9d, edi
mov rdx, rsi
mov r8d, eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 1
call fcn.1400459d0
mov ecx, 0xa
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140046142
cmp byte [rbx + 0x50], 0
je 0x140046428
mov edx, dword [rbx + 0x38]
test edx, edx
je 0x1400461c0
lea rdx, str.CXX_IMPORTS_
mov rcx, rsi
call fcn.14009cc40
mov r8d, eax
mov eax, dword [rbx + 0x38]
test eax, eax
je 0x1400461a0
lea rbp, str..cm
xor r12d, r12d
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov edx, r12d
mov r9d, edi
add r12d, 1
mov rcx, qword [rax + rdx*8]
mov qword [rsp + 0x28], rbp
mov rdx, rsi
mov dword [rsp + 0x20], 1
call fcn.1400459d0
cmp r12d, dword [rbx + 0x38]
mov r8d, eax
jne 0x140046170
mov rdx, rsi
mov ecx, 0xa
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r8d, dword [rbx + 8]
movzx r12d, word [rbx + 0x52]
test r8d, r8d
je 0x14004621c
xor r8d, r8d
xor ebp, ebp
nop dword [rax + rax]
mov rax, qword [rbx]
mov edx, ebp
mov r9d, edi
mov rcx, qword [rax + rdx*8]
xor eax, eax
cmp ebp, r12d
mov rdx, rsi
mov qword [rsp + 0x28], 0
setae al
add ebp, 1
mov dword [rsp + 0x20], eax
call fcn.1400459d0
cmp ebp, dword [rbx + 8]
mov r8d, eax
jne 0x1400461e8
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140046244
mov qword [rsp + 0x28], 0
mov r9d, edi
mov rdx, rsi
mov dword [rsp + 0x20], 1
call fcn.1400459d0
mov r8d, eax
mov ecx, 0x3a
mov rdx, rsi
mov dword [rsp + 0x3c], r8d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov r8d, dword [rsp + 0x3c]
mov ecx, dword [rbx + 0x38]
add r8d, 1
test ecx, ecx
je 0x1400462a0
lea rbp, str..cm
xor r12d, r12d
mov rax, qword [rbx + 0x30]
mov edx, r12d
mov r9d, edi
add r12d, 1
mov rcx, qword [rax + rdx*8]
mov qword [rsp + 0x28], rbp
mov rdx, rsi
mov dword [rsp + 0x20], 1
call fcn.1400459d0
cmp r12d, dword [rbx + 0x38]
mov r8d, eax
jne 0x140046270
mov ecx, 0xa
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140046083
jmp 0x140046142
mov r8d, dword [rbx + 8]
movzx r13d, word [rbx + 0x52]
test r8d, r8d
je 0x14004630c
xor r8d, r8d
xor ebp, ebp
nop dword [rax + rax]
mov rax, qword [rbx]
mov edx, ebp
mov r9d, edi
mov rcx, qword [rax + rdx*8]
xor eax, eax
cmp ebp, r13d
mov rdx, rsi
mov qword [rsp + 0x28], 0
setae al
add ebp, 1
mov dword [rsp + 0x20], eax
call fcn.1400459d0
cmp ebp, dword [rbx + 8]
mov r8d, eax
jne 0x1400462d8
cmp byte [r12 + 0x546], 0
jne 0x1400463f0
mov rdx, rsi
mov ecx, 0x3a
mov dword [rsp + 0x3c], r8d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov r8d, dword [rsp + 0x3c]
mov r9d, dword [rbx + 0x18]
add r8d, 1
test r9d, r9d
je 0x140046379
xor ebp, ebp
nop dword [rax]
mov rax, qword [rbx + 0x10]
mov edx, ebp
mov r9d, edi
add ebp, 1
mov rcx, qword [rax + rdx*8]
mov dword [rsp + 0x20], 1
mov rdx, rsi
mov qword [rsp + 0x28], 0
call fcn.1400459d0
cmp ebp, dword [rbx + 0x18]
mov r8d, eax
jne 0x140046348
mov rdx, rsi
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp byte [r12 + 0x545], 0
je 0x14004605a
cmp dword [rbx + 0x18], 1
jbe 0x14004605a
mov r13d, 8
mov ebp, 1
lea r14, str._s:_n
nop dword [rax]
mov rax, qword [rbx + 0x10]
xor edx, edx
add ebp, 1
mov rcx, qword [rax + r13]
add r13, 8
call fcn.1400458a0
mov rdx, r14
mov rcx, rsi
mov r8, rax
call fcn.14009cc40
cmp ebp, dword [rbx + 0x18]
jb 0x1400463b8
jmp 0x14004605a
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14004631b
mov qword [rsp + 0x28], 0
mov r9d, edi
mov rdx, rsi
mov dword [rsp + 0x20], 1
call fcn.1400459d0
mov r8d, eax
jmp 0x14004631b
xor edx, edx
call fcn.1400458a0
mov rbp, rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rsi
mov rcx, rbp
mov r12, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov r9, rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x140108cce]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rbx]
mov rdx, rsi
mov r9d, edi
lea r8d, [r12 + 1]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call fcn.1400459d0
mov rdx, rsi
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
jmp 0x140046142