Function at 0x14000e130
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 [0x14004dc50]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x14000e21c
cmp byte [rdi + 1], 0
je 0x14000e21c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x14000e21c
mov rcx, rbx
call fcn.14002dce0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14000e1ab
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e19e
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000e1d3
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e1c6
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000e1fb
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e1ee
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e20d
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c48]
test rcx, rcx
je 0x14000e25b
mov qword [rdi + 0x3c40], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e248
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3c48], r15
cmp byte [rdi], r15b
je 0x14000eb76
cmp byte [rdi + 0x5be1], r15b
je 0x14000e2cc
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000e2cc
mov rax, qword [0x14004dc50]
mov dword [rax + 0x5be4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140020bb0
mov rsi, rax
lea rdx, [0x14003eb64]
mov rcx, rbx
call fcn.14000c4d0
mov rbx, rax
test rax, rax
je 0x14000e2cc
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 + 0x5c28], r15d
jle 0x14000e310
mov rsi, r15
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5c30]
cmp dword [rsi + rcx + 4], 6
jne 0x14000e302
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 + 0x5c28]
jl 0x14000e2e0
mov esi, r15d
cmp dword [rdi + 0x3e70], r15d
jle 0x14000e367
mov r14, r15
nop
mov rax, qword [rdi + 0x3e78]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000e359
mov rcx, rbx
call fcn.14000f0c0
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e34a
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e70]
jl 0x14000e320
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x14000e39f
mov qword [rdi + 0x3e70], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e38c
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e78], r15
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x14000e3d7
mov qword [rdi + 0x3e80], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e3c4
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e88], r15
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x14000e40f
mov qword [rdi + 0x3e90], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e3fc
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e98], r15
mov qword [rdi + 0x3ed0], r15
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x14000e44e
mov qword [rdi + 0x3ea0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e43b
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ea8], r15
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x14000e486
mov qword [rdi + 0x3eb0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e473
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3eb8], r15
mov qword [rdi + 0x48b0], r15
mov qword [rdi + 0x3ee0], r15
mov qword [rdi + 0x3ed8], r15
mov qword [rdi + 0x3f68], r15
mov qword [rdi + 0x3f50], r15
mov qword [rdi + 0x3ee8], r15
lea rcx, [rdi + 0x4608]
call fcn.14000a860
mov rcx, qword [rdi + 0x4820]
test rcx, rcx
je 0x14000e4f4
mov qword [rdi + 0x4818], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e4e1
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4820], r15
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x14000e52c
mov qword [rdi + 0x4828], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e519
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4830], r15
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x14000e564
mov qword [rdi + 0x4838], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e551
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4840], r15
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x14000e59c
mov qword [rdi + 0x4878], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e589
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4880], r15
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x14000e5d4
mov qword [rdi + 0x4888], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e5c1
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4890], r15
mov ebp, r15d
cmp dword [rdi + 0x48a0], r15d
jle 0x14000e6b6
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x48a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000e6a4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000e636
mov rcx, rsi
call fcn.14000a6a0
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e627
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000e669
mov rcx, rsi
call fcn.14000a6a0
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e659
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140021c80]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14003b0a4
nop
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e695
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48a0]
jl 0x14000e5f0
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x14000e6ee
mov qword [rdi + 0x48a0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e6db
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48a8], r15
lea rcx, [rdi + 0x4ba0]
call fcn.140021cc0
mov rcx, qword [rdi + 0x4bd0]
test rcx, rcx
je 0x14000e732
mov qword [rdi + 0x4bc8], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e71f
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bd0], r15
mov rcx, qword [rdi + 0x4be0]
test rcx, rcx
je 0x14000e76a
mov qword [rdi + 0x4bd8], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e757
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4be0], r15
mov ebx, r15d
cmp dword [rdi + 0x4b20], r15d
jle 0x14000e7be
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b28]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000e7b0
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e7a3
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b20]
jl 0x14000e780
mov rcx, qword [rdi + 0x4b28]
test rcx, rcx
je 0x14000e7f6
mov qword [rdi + 0x4b20], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e7e3
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b28], r15
lea rcx, [rdi + 0x4b50]
call fcn.140021e60
mov esi, r15d
cmp dword [rdi + 0x4b40], r15d
jle 0x14000e85c
mov rbp, r15
mov rbx, qword [rdi + 0x4b48]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002d690
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000e84e
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e841
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b40]
jl 0x14000e811
mov rcx, qword [rdi + 0x4b48]
test rcx, rcx
je 0x14000e894
mov qword [rdi + 0x4b40], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e881
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b48], r15
mov rcx, qword [rdi + 0x4b90]
test rcx, rcx
je 0x14000e8cc
mov qword [rdi + 0x4b88], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e8b9
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b90], r15
mov rcx, qword [rdi + 0x5ba8]
test rcx, rcx
je 0x14000e904
mov qword [rdi + 0x5ba0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e8f1
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5ba8], r15
mov rcx, qword [rdi + 0x5bb8]
test rcx, rcx
je 0x14000e93c
mov qword [rdi + 0x5bb0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e929
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bb8], r15
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x14000e974
mov qword [rdi + 0x4c18], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e961
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c20], r15
mov rcx, qword [rdi + 0x4c30]
test rcx, rcx
je 0x14000e9ac
mov qword [rdi + 0x4c28], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e999
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c30], r15
mov rcx, qword [rdi + 0x4c40]
test rcx, rcx
je 0x14000e9e4
mov qword [rdi + 0x4c38], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000e9d1
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c40], r15
mov dword [rdi + 0x5a90], r15d
mov rcx, qword [rdi + 0x5aa0]
test rcx, rcx
je 0x14000ea23
mov qword [rdi + 0x5a98], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000ea10
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5aa0], r15
mov rcx, qword [rdi + 0x5c10]
test rcx, rcx
je 0x14000ea5b
mov qword [rdi + 0x5c08], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000ea48
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c10], r15
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x14000ea93
mov qword [rdi + 0x5bf8], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000ea80
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c00], r15
cmp qword [rdi + 0x5c80], 0
je 0x14000eac4
mov rbx, qword [rdi + 0x5c80]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000eabd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c80], r15
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x14000eafc
mov qword [rdi + 0x5c88], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000eae9
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c90], r15
mov rcx, qword [rdi + 0x5cc8]
test rcx, rcx
je 0x14000eb34
mov qword [rdi + 0x5cc0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000eb21
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5cc8], r15
mov rcx, qword [rdi + 0x5cd8]
test rcx, rcx
je 0x14000eb6c
mov qword [rdi + 0x5cd0], r15
mov rax, qword [0x14004dc50]
test rax, rax
je 0x14000eb59
dec dword [rax + 0xf4]
mov rdx, qword [0x14004dc48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5cd8], r15
mov dword [rdi + 0x5ce0], 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