Function at 0x140026680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1400a1eb0]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1400266e6
cmp byte [rax + 1], 0
je 0x1400266e6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x1400266e6
mov rcx, rbx
call fcn.140056610
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400266d6
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400a1eb0]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d78]
test rcx, rcx
je 0x14002671f
mov qword [rdi + 0x3d70], r12
test rax, rax
je 0x14002670b
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d78], r12
mov rax, qword [0x1400a1eb0]
cmp byte [rdi], r12b
je 0x140026fa8
cmp byte [rdi + 0x5d60], r12b
je 0x140026789
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140026789
mov dword [rax + 0x5d64], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14003cb60
mov rsi, rax
lea rdx, [0x14008af40]
mov rcx, rbx
call fcn.140023660
mov rbx, rax
test rax, rax
je 0x140026789
mov r9, rax
mov r8, qword [rsp + 0x50]
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]
call fcn.14003f450
mov esi, r12d
cmp dword [rdi + 0x5d28], r12d
jle 0x1400267e2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5d30]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400267d4
mov rcx, rbx
call fcn.1400410a0
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400267cb
dec dword [rax + 0xfc]
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 + 0x5d28]
jl 0x1400267a0
mov ebx, r12d
cmp dword [rdi + 0x5da8], r12d
jle 0x140026821
mov rsi, r12
mov rcx, qword [rdi + 0x5db0]
cmp dword [rsi + rcx + 4], 6
jne 0x140026813
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 + 0x5da8]
jl 0x1400267f1
mov esi, r12d
cmp dword [rdi + 0x3f78], r12d
jle 0x140026871
mov r14, r12
mov rax, qword [rdi + 0x3f80]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140026863
mov rcx, rbx
call fcn.140027550
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x14002685a
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3f78]
jl 0x140026830
mov rcx, qword [rdi + 0x3f80]
test rcx, rcx
je 0x1400268a3
mov qword [rdi + 0x3f78], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026896
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f80], r12
mov rcx, qword [rdi + 0x3f90]
test rcx, rcx
je 0x1400268d5
mov qword [rdi + 0x3f88], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400268c8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f90], r12
mov rcx, qword [rdi + 0x3fa0]
test rcx, rcx
je 0x140026907
mov qword [rdi + 0x3f98], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400268fa
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa0], r12
mov qword [rdi + 0x3fd8], r12
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x140026940
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026933
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140026972
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026965
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov qword [rdi + 0x4a28], r12
mov qword [rdi + 0x3fe8], r12
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4070], r12
mov qword [rdi + 0x4058], r12
mov qword [rdi + 0x3ff0], r12
lea rcx, [rdi + 0x4710]
call fcn.140021970
mov rcx, qword [rdi + 0x4948]
test rcx, rcx
je 0x1400269da
mov qword [rdi + 0x4940], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400269cd
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4948], r12
mov rcx, qword [rdi + 0x4958]
test rcx, rcx
je 0x140026a0c
mov qword [rdi + 0x4950], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x1400269ff
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4958], r12
mov rcx, qword [rdi + 0x4968]
test rcx, rcx
je 0x140026a3e
mov qword [rdi + 0x4960], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026a31
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4968], r12
mov rcx, qword [rdi + 0x49a8]
test rcx, rcx
je 0x140026a70
mov qword [rdi + 0x49a0], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026a63
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a8], r12
mov rcx, qword [rdi + 0x49b8]
test rcx, rcx
je 0x140026aa2
mov qword [rdi + 0x49b0], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026a95
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b8], r12
mov qword [rdi + 0x49f0], r12
mov qword [rdi + 0x49e8], r12
mov qword [rdi + 0x49e0], r12
mov ebp, r12d
cmp dword [rdi + 0x49c8], r12d
jle 0x140026b8d
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x49d0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140026b7b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x140026b13
mov rcx, rsi
call fcn.140021850
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026b0a
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140026b43
mov rcx, rsi
call fcn.140021850
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026b39
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x140021440]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.140082b54
nop
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026b72
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x49c8]
jl 0x140026ad0
mov rcx, qword [rdi + 0x49d0]
test rcx, rcx
je 0x140026bbf
mov qword [rdi + 0x49c8], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026bb2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d0], r12
lea rcx, [rdi + 0x4d00]
call fcn.140049930
mov rcx, qword [rdi + 0x4d30]
test rcx, rcx
je 0x140026bfd
mov qword [rdi + 0x4d28], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026bf0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d30], r12
mov rcx, qword [rdi + 0x4d40]
test rcx, rcx
je 0x140026c2f
mov qword [rdi + 0x4d38], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026c22
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d40], r12
mov ebx, r12d
cmp dword [rdi + 0x4c80], r12d
jle 0x140026c78
mov rsi, r12
nop
mov rax, qword [rdi + 0x4c88]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140026c6a
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026c63
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4c80]
jl 0x140026c40
mov rcx, qword [rdi + 0x4c88]
test rcx, rcx
je 0x140026caa
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026c9d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c88], r12
lea rcx, [rdi + 0x4cb0]
call fcn.140049ab0
mov esi, r12d
cmp dword [rdi + 0x4ca0], r12d
jle 0x140026d15
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4ca8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140055f50
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140026d07
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026d00
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4ca0]
jl 0x140026cd0
mov rcx, qword [rdi + 0x4ca8]
test rcx, rcx
je 0x140026d47
mov qword [rdi + 0x4ca0], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026d3a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ca8], r12
mov rcx, qword [rdi + 0x4cf0]
test rcx, rcx
je 0x140026d79
mov qword [rdi + 0x4ce8], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026d6c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cf0], r12
mov rcx, qword [rdi + 0x5ce8]
test rcx, rcx
je 0x140026dab
mov qword [rdi + 0x5ce0], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026d9e
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce8], r12
mov rcx, qword [rdi + 0x5cf8]
test rcx, rcx
je 0x140026ddd
mov qword [rdi + 0x5cf0], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026dd0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cf8], r12
mov rcx, qword [rdi + 0x4d80]
test rcx, rcx
je 0x140026e0f
mov qword [rdi + 0x4d78], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026e02
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d80], r12
mov rcx, qword [rdi + 0x4d90]
test rcx, rcx
je 0x140026e41
mov qword [rdi + 0x4d88], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026e34
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d90], r12
mov rcx, qword [rdi + 0x4da0]
test rcx, rcx
je 0x140026e73
mov qword [rdi + 0x4d98], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026e66
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da0], r12
mov rcx, qword [rdi + 0x5d90]
test rcx, rcx
je 0x140026ea5
mov qword [rdi + 0x5d88], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026e98
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d90], r12
mov rcx, qword [rdi + 0x5d80]
test rcx, rcx
je 0x140026ed7
mov qword [rdi + 0x5d78], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026eca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d80], r12
cmp qword [rdi + 0x5e08], 0
je 0x140026f08
mov rbx, qword [rdi + 0x5e08]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140026f01
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e08], r12
mov rcx, qword [rdi + 0x5e18]
test rcx, rcx
je 0x140026f3a
mov qword [rdi + 0x5e10], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026f2d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e18], r12
mov rcx, qword [rdi + 0x5e50]
test rcx, rcx
je 0x140026f6c
mov qword [rdi + 0x5e48], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026f5f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e50], r12
mov rcx, qword [rdi + 0x5e60]
test rcx, rcx
je 0x140026f9e
mov qword [rdi + 0x5e58], r12
mov rax, qword [0x1400a1eb0]
test rax, rax
je 0x140026f91
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e60], r12
mov dword [rdi + 0x5e68], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret