Function at 0x14001f6d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov rsi, rcx
cmp dword [rcx + 8], 0
je 0x14001f7a9
mov rdi, qword [rsi + 0x28]
test rdi, rdi
jne 0x14001f814
mov r12, r9
mov ebp, edx
mov rbx, qword [rsi + 0x10]
mov r15d, dword [rsi + 0x18]
mov r14, qword [rsi + 0x20]
mov ecx, 0x38
call sub.gc.dll_GC_malloc
mov rdi, rax
mov qword [rax + 4], 0
mov qword [rax + 0xc], 0
mov qword [rax + 0x14], 0
mov qword [rax + 0x1c], 0
mov qword [rax + 0x24], 0
mov qword [rax + 0x2c], 0
mov dword [rax + 0x34], 0
mov dword [rax], 0x6d
mov qword [rax + 8], rbx
mov dword [rax + 0x10], r15d
mov qword [rax + 0x18], r14
lea rdx, [0x140028a30]
cmp r15d, 0xc4
jne 0x14001f7c4
cmp r14d, 8
jne 0x14001f7c4
lea rcx, [0x140028a30]
lea r14, [0x140028a50]
mov rdx, r14
call fcn.140014260
mov r15, rax
mov rcx, rbx
mov rdx, r14
call fcn.140014260
mov rdx, r15
mov rcx, rax
mov r14b, 1
jmp 0x14001f7ca
mov rcx, rsi
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14001fa20
xor r14d, r14d
mov rcx, rbx
add rcx, 0xc
add rdx, 0xc
call sub.libiconv.dll_libiconv_open
cmp rax, 0xffffffffffffffff
je 0x14001f994
mov qword [rdi + 0x28], rax
mov byte [rdi + 0x20], r14b
mov byte [rdi + 0x30], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x14001f9e0]
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.gc.dll_GC_register_finalizer_ignore_self
mov qword [rsi + 0x28], rdi
mov edx, ebp
mov r9, r12
mov qword [rsp + 0x48], r9
test edx, edx
js 0x14001f944
mov eax, edx
mov qword [rsp + 0x38], rax
test edx, edx
je 0x14001f930
lea r13, [rsp + 0x58]
lea rbp, [rsp + 0x40]
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x38]
lea r15, [rsp + 0x50]
lea r12, [rsp + 0x34]
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x40], 0x400
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov r8, r14
mov r9, r15
call sub.libiconv.dll_libiconv
cmp rax, 0xffffffffffffffff
jne 0x14001f8c0
cmp byte [rdi + 0x20], 1
jne 0x14001f89a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14001f8c0
inc qword [rsp + 0x48]
dec rax
mov qword [rsp + 0x38], rax
jmp 0x14001f8c0
mov rcx, r12
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_errno
test eax, eax
jne 0x14001f956
mov eax, dword [rsp + 0x34]
cmp eax, 0x16
je 0x14001f980
cmp eax, 0x2a
je 0x14001f96c
mov eax, 0x400
sub rax, qword [rsp + 0x40]
mov ecx, 0
sbb rcx, rcx
and ecx, 1
movsxd rdx, eax
mov r8, rax
xor r8, rdx
shr rdx, 0x3f
xor rdx, rcx
or rdx, r8
jne 0x14001f944
xor ecx, ecx
cmp eax, 0x400
mov edx, 0
mov r9d, 0
ja 0x14001f90d
mov byte [rsp + 0x34], 0
mov edx, eax
mov ecx, 0x23d
mov r9, r13
test ecx, ecx
je 0x14001f949
mov r8, rdx
shr r8, 0x20
and r8d, 1
mov rcx, rsi
call fcn.14001fa20
cmp qword [rsp + 0x38], 0
jne 0x14001f850
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140003430
call fcn.1400053c0
mov rcx, rax
call fcn.140005420
lea rcx, [0x140028290]
mov edx, eax
call fcn.1400194d0
mov rcx, rax
call fcn.140007430
lea rcx, [0x140028b00]
call fcn.140003730
mov rcx, rax
call fcn.140003790
lea rcx, [0x140028ad0]
call fcn.140003730
mov rcx, rax
call fcn.140003790
call fcn.140019490
cmp eax, 0x16
jne 0x14001f9bd
lea rcx, [0x140028a70]
mov rdx, rbx
call fcn.140014260
mov rcx, rax
call fcn.140003730
mov rcx, rax
call fcn.140003790
lea rcx, [0x140028a90]
call fcn.1400193d0
mov rcx, rax
call fcn.140007430
int3