Function at 0x140014d20
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, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140014d5d
cmp byte [rcx + 1], 0
je 0x140014d5d
mov byte [rax + 0x18], 0
mov rcx, qword [rcx + 0xa8]
call fcn.14002f270
xor r15d, r15d
mov qword [rdi + 0xa8], r15
cmp byte [rdi], r15b
je 0x1400154dd
cmp byte [rdi + 0x32a0], r15b
je 0x140014de0
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140014de0
mov rsi, qword [0x14012de10]
mov qword [0x14012de10], rdi
mov dword [rdi + 0x32a4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140023b10
mov rbp, rax
lea rdx, [0x140112c98]
mov rcx, rbx
call fcn.14000ef40
mov rbx, rax
test rax, rax
je 0x140014de7
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rbp
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]
jmp 0x140014de7
mov rsi, qword [0x14012de10]
mov qword [0x14012de10], rdi
call fcn.1400261a0
mov qword [0x14012de10], rsi
mov esi, r15d
cmp dword [rdi + 0x3268], r15d
jle 0x140014e52
mov rbp, r15
nop dword [rax]
mov rax, qword [rdi + 0x3270]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140014e44
mov rcx, rbx
call fcn.1400274d0
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014e3b
dec dword [rax + 0x3ac]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x3268]
jl 0x140014e10
mov ebx, r15d
cmp dword [rdi + 0x32e8], r15d
jle 0x140014e91
mov rsi, r15
mov rcx, qword [rdi + 0x32f0]
cmp dword [rsi + rcx + 4], 6
jne 0x140014e83
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 + 0x32e8]
jl 0x140014e61
mov ebx, r15d
cmp dword [rdi + 0x1cc8], r15d
jle 0x140014ebe
mov rsi, r15
mov rcx, qword [rdi + 0x1cd0]
mov rcx, qword [rsi + rcx]
call fcn.14002f480
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x1cc8]
jl 0x140014ea0
mov rcx, qword [rdi + 0x1cd0]
test rcx, rcx
je 0x140014ef0
mov qword [rdi + 0x1cc8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014ee3
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1cd0], r15
mov rcx, qword [rdi + 0x1ce0]
test rcx, rcx
je 0x140014f22
mov qword [rdi + 0x1cd8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014f15
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ce0], r15
mov rcx, qword [rdi + 0x1cf0]
test rcx, rcx
je 0x140014f54
mov qword [rdi + 0x1ce8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014f47
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1cf0], r15
mov qword [rdi + 0x1d28], r15
mov rcx, qword [rdi + 0x1d00]
test rcx, rcx
je 0x140014f8d
mov qword [rdi + 0x1cf8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014f80
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d00], r15
mov rcx, qword [rdi + 0x1d10]
test rcx, rcx
je 0x140014fbf
mov qword [rdi + 0x1d08], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140014fb2
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d10], r15
mov qword [rdi + 0x1f98], r15
mov qword [rdi + 0x1d38], r15
mov qword [rdi + 0x1d30], r15
mov qword [rdi + 0x1dc0], r15
mov qword [rdi + 0x1da8], r15
mov qword [rdi + 0x1d48], r15
mov rcx, qword [rdi + 0x1ec0]
test rcx, rcx
je 0x14001501b
mov qword [rdi + 0x1eb8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x14001500e
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ec0], r15
mov rcx, qword [rdi + 0x1ed0]
test rcx, rcx
je 0x14001504d
mov qword [rdi + 0x1ec8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015040
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ed0], r15
mov rcx, qword [rdi + 0x1ee0]
test rcx, rcx
je 0x14001507f
mov qword [rdi + 0x1ed8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015072
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1ee0], r15
mov rcx, qword [rdi + 0x1f20]
test rcx, rcx
je 0x1400150b1
mov qword [rdi + 0x1f18], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400150a4
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f20], r15
mov rcx, qword [rdi + 0x1f30]
test rcx, rcx
je 0x1400150e3
mov qword [rdi + 0x1f28], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400150d6
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f30], r15
mov qword [rdi + 0x1f60], r15
mov qword [rdi + 0x1f58], r15
mov qword [rdi + 0x1f50], r15
mov ebx, r15d
cmp dword [rdi + 0x1f38], r15d
jle 0x14001512e
mov rsi, r15
nop word [rax + rax]
mov rcx, qword [rdi + 0x1f40]
mov rcx, qword [rsi + rcx]
call fcn.14002f3c0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x1f38]
jl 0x140015110
mov rcx, qword [rdi + 0x1f40]
test rcx, rcx
je 0x140015160
mov qword [rdi + 0x1f38], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015153
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1f40], r15
lea rcx, [rdi + 0x2258]
call fcn.14002e500
mov rcx, qword [rdi + 0x2288]
test rcx, rcx
je 0x14001519e
mov qword [rdi + 0x2280], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015191
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2288], r15
mov rcx, qword [rdi + 0x2298]
test rcx, rcx
je 0x1400151d0
mov qword [rdi + 0x2290], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400151c3
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2298], r15
mov ebx, r15d
cmp dword [rdi + 0x21d8], r15d
jle 0x140015218
mov rsi, r15
nop
mov rax, qword [rdi + 0x21e0]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x14001520a
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015203
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x21d8]
jl 0x1400151e0
mov rcx, qword [rdi + 0x21e0]
test rcx, rcx
je 0x14001524a
mov qword [rdi + 0x21d8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x14001523d
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x21e0], r15
lea rcx, [rdi + 0x2208]
call fcn.14002e670
mov esi, r15d
cmp dword [rdi + 0x21f8], r15d
jle 0x1400152b5
mov rbp, r15
nop word [rax + rax]
mov rbx, qword [rdi + 0x2200]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14003a2f0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400152a7
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400152a0
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x21f8]
jl 0x140015270
mov rcx, qword [rdi + 0x2200]
test rcx, rcx
je 0x1400152e7
mov qword [rdi + 0x21f8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400152da
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2200], r15
mov rcx, qword [rdi + 0x2248]
test rcx, rcx
je 0x140015319
mov qword [rdi + 0x2240], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x14001530c
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2248], r15
mov rcx, qword [rdi + 0x3230]
test rcx, rcx
je 0x14001534b
mov qword [rdi + 0x3228], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x14001533e
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3230], r15
mov rcx, qword [rdi + 0x3240]
test rcx, rcx
je 0x14001537d
mov qword [rdi + 0x3238], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015370
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3240], r15
mov rcx, qword [rdi + 0x22c0]
test rcx, rcx
je 0x1400153af
mov qword [rdi + 0x22b8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400153a2
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22c0], r15
mov rcx, qword [rdi + 0x22d0]
test rcx, rcx
je 0x1400153e1
mov qword [rdi + 0x22c8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400153d4
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22d0], r15
mov rcx, qword [rdi + 0x22e0]
test rcx, rcx
je 0x140015413
mov qword [rdi + 0x22d8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015406
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x22e0], r15
mov rcx, qword [rdi + 0x32d0]
test rcx, rcx
je 0x140015445
mov qword [rdi + 0x32c8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x140015438
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x32d0], r15
mov rcx, qword [rdi + 0x32c0]
test rcx, rcx
je 0x140015477
mov qword [rdi + 0x32b8], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x14001546a
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x32c0], r15
cmp qword [rdi + 0x3308], 0
je 0x1400154a8
mov rbx, qword [rdi + 0x3308]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400154a1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3308], r15
mov rcx, qword [rdi + 0x3318]
test rcx, rcx
je 0x1400154da
mov qword [rdi + 0x3310], r15
mov rax, qword [0x14012de10]
test rax, rax
je 0x1400154cd
dec dword [rax + 0x3ac]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3318], r15
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