Function at 0x14001f740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x140175750]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14001f82c
cmp byte [rdi + 1], 0
je 0x14001f82c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14001f82c
mov rcx, rbx
call fcn.140040e00
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14001f7bb
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f7ae
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14001f7e3
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f7d6
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001f80b
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f7fe
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f81d
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3cb0]
test rcx, rcx
je 0x14001f86b
mov qword [rdi + 0x3ca8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f858
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3cb0], r15
cmp byte [rdi], r15b
je 0x140020186
cmp byte [rdi + 0x5c59], r15b
je 0x14001f8dc
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14001f8dc
mov rax, qword [0x140175750]
mov dword [rax + 0x5c5c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140033be0
mov rsi, rax
lea rdx, [0x140092414]
mov rcx, rbx
call fcn.14001d500
mov rbx, rax
test rax, rax
je 0x14001f8dc
mov r9, rax
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, r15d
cmp dword [rdi + 0x5ca0], r15d
jle 0x14001f920
mov rsi, r15
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5ca8]
cmp dword [rsi + rcx + 4], 6
jne 0x14001f912
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5ca0]
jl 0x14001f8f0
mov esi, r15d
cmp dword [rdi + 0x3ed8], r15d
jle 0x14001f977
mov r14, r15
nop
mov rax, qword [rdi + 0x3ee0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14001f969
mov rcx, rbx
call fcn.1400206d0
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f95a
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3ed8]
jl 0x14001f930
mov rcx, qword [rdi + 0x3ee0]
test rcx, rcx
je 0x14001f9af
mov qword [rdi + 0x3ed8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f99c
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ee0], r15
mov rcx, qword [rdi + 0x3ef0]
test rcx, rcx
je 0x14001f9e7
mov qword [rdi + 0x3ee8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001f9d4
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ef0], r15
mov rcx, qword [rdi + 0x3f00]
test rcx, rcx
je 0x14001fa1f
mov qword [rdi + 0x3ef8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fa0c
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3f00], r15
mov qword [rdi + 0x3f38], r15
mov rcx, qword [rdi + 0x3f10]
test rcx, rcx
je 0x14001fa5e
mov qword [rdi + 0x3f08], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fa4b
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3f10], r15
mov rcx, qword [rdi + 0x3f20]
test rcx, rcx
je 0x14001fa96
mov qword [rdi + 0x3f18], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fa83
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3f20], r15
mov qword [rdi + 0x4920], r15
mov qword [rdi + 0x3f48], r15
mov qword [rdi + 0x3f40], r15
mov qword [rdi + 0x3fd0], r15
mov qword [rdi + 0x3fb8], r15
mov qword [rdi + 0x3f50], r15
lea rcx, [rdi + 0x4670]
call fcn.14001b7c0
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x14001fb04
mov qword [rdi + 0x4888], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001faf1
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4890], r15
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x14001fb3c
mov qword [rdi + 0x4898], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fb29
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48a0], r15
mov rcx, qword [rdi + 0x48b0]
test rcx, rcx
je 0x14001fb74
mov qword [rdi + 0x48a8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fb61
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48b0], r15
mov rcx, qword [rdi + 0x48f0]
test rcx, rcx
je 0x14001fbac
mov qword [rdi + 0x48e8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fb99
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48f0], r15
mov rcx, qword [rdi + 0x4900]
test rcx, rcx
je 0x14001fbe4
mov qword [rdi + 0x48f8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fbd1
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4900], r15
mov ebp, r15d
cmp dword [rdi + 0x4910], r15d
jle 0x14001fcc6
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x4918]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14001fcb4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14001fc46
mov rcx, rsi
call fcn.14001b5a0
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fc37
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14001fc79
mov rcx, rsi
call fcn.14001b5a0
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fc69
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140034cb0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14008509c
nop
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fca5
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4910]
jl 0x14001fc00
mov rcx, qword [rdi + 0x4918]
test rcx, rcx
je 0x14001fcfe
mov qword [rdi + 0x4910], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fceb
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4918], r15
lea rcx, [rdi + 0x4c08]
call fcn.140034cf0
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x14001fd42
mov qword [rdi + 0x4c30], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fd2f
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c38], r15
mov rcx, qword [rdi + 0x4c48]
test rcx, rcx
je 0x14001fd7a
mov qword [rdi + 0x4c40], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fd67
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c48], r15
mov ebx, r15d
cmp dword [rdi + 0x4b88], r15d
jle 0x14001fdce
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b90]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14001fdc0
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fdb3
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b88]
jl 0x14001fd90
mov rcx, qword [rdi + 0x4b90]
test rcx, rcx
je 0x14001fe06
mov qword [rdi + 0x4b88], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fdf3
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b90], r15
lea rcx, [rdi + 0x4bb8]
call fcn.140034e90
mov esi, r15d
cmp dword [rdi + 0x4ba8], r15d
jle 0x14001fe6c
mov rbp, r15
mov rbx, qword [rdi + 0x4bb0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400407b0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14001fe5e
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fe51
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4ba8]
jl 0x14001fe21
mov rcx, qword [rdi + 0x4bb0]
test rcx, rcx
je 0x14001fea4
mov qword [rdi + 0x4ba8], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fe91
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bb0], r15
mov rcx, qword [rdi + 0x4bf8]
test rcx, rcx
je 0x14001fedc
mov qword [rdi + 0x4bf0], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001fec9
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bf8], r15
mov rcx, qword [rdi + 0x5c20]
test rcx, rcx
je 0x14001ff14
mov qword [rdi + 0x5c18], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001ff01
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c20], r15
mov rcx, qword [rdi + 0x5c30]
test rcx, rcx
je 0x14001ff4c
mov qword [rdi + 0x5c28], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001ff39
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c30], r15
mov rcx, qword [rdi + 0x4c98]
test rcx, rcx
je 0x14001ff84
mov qword [rdi + 0x4c90], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001ff71
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c98], r15
mov rcx, qword [rdi + 0x4ca8]
test rcx, rcx
je 0x14001ffbc
mov qword [rdi + 0x4ca0], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001ffa9
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4ca8], r15
mov rcx, qword [rdi + 0x4cb8]
test rcx, rcx
je 0x14001fff4
mov qword [rdi + 0x4cb0], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x14001ffe1
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4cb8], r15
mov dword [rdi + 0x5b08], r15d
mov rcx, qword [rdi + 0x5b18]
test rcx, rcx
je 0x140020033
mov qword [rdi + 0x5b10], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x140020020
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5b18], r15
mov rcx, qword [rdi + 0x5c88]
test rcx, rcx
je 0x14002006b
mov qword [rdi + 0x5c80], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x140020058
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c88], r15
mov rcx, qword [rdi + 0x5c78]
test rcx, rcx
je 0x1400200a3
mov qword [rdi + 0x5c70], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x140020090
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c78], r15
cmp qword [rdi + 0x5d00], 0
je 0x1400200d4
mov rbx, qword [rdi + 0x5d00]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400200cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5d00], r15
mov rcx, qword [rdi + 0x5d10]
test rcx, rcx
je 0x14002010c
mov qword [rdi + 0x5d08], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x1400200f9
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5d10], r15
mov rcx, qword [rdi + 0x5d48]
test rcx, rcx
je 0x140020144
mov qword [rdi + 0x5d40], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x140020131
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5d48], r15
mov rcx, qword [rdi + 0x5d58]
test rcx, rcx
je 0x14002017c
mov qword [rdi + 0x5d50], r15
mov rax, qword [0x140175750]
test rax, rax
je 0x140020169
dec dword [rax + 0xec]
mov rdx, qword [0x140175740]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5d58], r15
mov dword [rdi + 0x5d60], r15d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret