Function at 0x14004af20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
mov rdi, r9
mov rcx, r9
mov r15, r8
mov r14, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x20], eax
lea rsi, [r13 + 0x18]
test eax, eax
js 0x14004afd1
xor r12d, r12d
movsxd rcx, eax
mov qword [rsp + 0x28], rcx
mov ebx, r12d
mov ebp, r12d
test r15, r15
je 0x14004afc4
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14]
shl rax, 5
add rax, qword [r13 + 0x60]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14004af97
mov rcx, qword [rax]
mov r9, rsi
mov r8d, 0x200
mov rdx, rdi
call fcn.14004c380
test eax, eax
js 0x14004b329
mov eax, 1
cmovne ebx, eax
inc rbp
add r14, 0x10
cmp rbp, r15
jb 0x14004af80
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jns 0x14004aff7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test rsi, rsi
je 0x14004b329
mov dword [rsi], 5
mov rax, 0xffffffffffffffff
mov dword [rsi + 4], ecx
jmp 0x14004b335
mov r14, qword [rsp + 0x28]
mov ecx, 0xffffffff
movsxd rsi, eax
mov eax, 0xffff
mov rbp, rsi
sub rbp, r14
cmp r14, rcx
ja 0x14004b021
cmp r15, rax
ja 0x14004b021
test ebx, ebx
je 0x14004b17e
mov ebx, 1
lea rcx, [0x14014b750]
mov edx, ebx
mov r9, rdi
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rdi
mov ecx, 0x2c
call fcn.14004ce70
mov rdx, rdi
mov ecx, 0x2d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
mov ecx, 0x2d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
mov rcx, r15
call fcn.14004ce70
mov rdx, rdi
mov rcx, r15
call fcn.14004ce70
mov rdx, rdi
mov rcx, rbp
call fcn.14004ce70
mov rdx, rdi
mov rcx, r14
call fcn.14004ce70
mov r9, rdi
lea rcx, [0x14014b738]
mov r8d, 4
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
mov rcx, rsi
call fcn.14004ce70
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
jmp 0x14004b183
mov ebx, 1
mov r9, rdi
lea rcx, [0x14014b730]
mov r8d, 4
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, 0xffff
movzx esi, r15w
cmp r15, rax
jae 0x14004b1da
movzx eax, r15w
movzx ebx, ax
mov rdx, rdi
movzx ecx, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr ebx, 8
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, 0xffff
mov rdx, rdi
cmp r15, rax
cmovae si, ax
movzx ebx, si
movzx ecx, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr ebx, 8
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov esi, 0xffffffff
mov ebx, ebp
cmp rbp, rsi
mov rdx, rdi
cmovae ebx, esi
movzx ecx, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, ebx
mov rdx, rdi
shr eax, 8
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, ebx
mov rdx, rdi
shr eax, 0x10
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr ebx, 0x18
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov ebx, dword [rsp + 0x20]
cmp r14, rsi
mov rdx, rdi
cmovae ebx, esi
movzx ecx, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, ebx
mov rdx, rdi
shr eax, 8
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov eax, ebx
mov rdx, rdi
shr eax, 0x10
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr ebx, 0x18
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
cmp dword [r13 + 0x48], r12d
je 0x14004b2bb
mov rsi, qword [r13 + 0x40]
jmp 0x14004b2bf
mov rsi, qword [r13 + 0x38]
test rsi, rsi
je 0x14004b2c9
movzx r12d, word [rsi + 8]
movzx ebx, r12w
mov rdx, rdi
movzx ecx, bl
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr ebx, 8
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
test rsi, rsi
je 0x14004b302
movzx r8d, word [rsi + 8]
mov r9, rdi
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14004b332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
add r13, 0x18
je 0x14004b329
mov dword [r13], 6
mov dword [r13 + 4], ecx
mov rax, 0xffffffffffffffff
jmp 0x14004b335
mov rax, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret