Function at 0x140028910
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 rdi, qword [0x14039a558]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x14002896c
cmp byte [rdi + 1], 0
je 0x14002896c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x14002896c
mov rcx, rbx
call fcn.14004afc0
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028963
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c78]
test rcx, rcx
je 0x1400289a5
mov qword [rdi + 0x3c70], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028998
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c78], r12
cmp byte [rdi], r12b
je 0x140029211
cmp byte [rdi + 0x5bc9], r12b
je 0x140028a16
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140028a16
mov rax, qword [0x14039a558]
mov dword [rax + 0x5bcc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14003cc00
mov rsi, rax
lea rdx, [0x1400f3dbc]
mov rcx, rbx
call fcn.140025fb0
mov rbx, rax
test rax, rax
je 0x140028a16
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]
mov ebx, r12d
cmp dword [rdi + 0x5c10], r12d
jle 0x140028a60
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c18]
cmp dword [rsi + rcx + 4], 6
jne 0x140028a52
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 + 0x5c10]
jl 0x140028a30
mov esi, r12d
cmp dword [rdi + 0x3e78], r12d
jle 0x140028ab1
mov r14, r12
nop
mov rax, qword [rdi + 0x3e80]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140028aa3
mov rcx, rbx
call fcn.140029700
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028a9a
dec dword [rax + 0xf4]
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 + 0x3e78]
jl 0x140028a70
mov rcx, qword [rdi + 0x3e80]
test rcx, rcx
je 0x140028ae3
mov qword [rdi + 0x3e78], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028ad6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e80], r12
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x140028b15
mov qword [rdi + 0x3e88], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028b08
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e90], r12
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x140028b47
mov qword [rdi + 0x3e98], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028b3a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea0], r12
mov qword [rdi + 0x3ed8], r12
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x140028b80
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028b73
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140028bb2
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028ba5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r12
mov qword [rdi + 0x48b8], r12
mov qword [rdi + 0x3ee8], r12
mov qword [rdi + 0x3ee0], r12
mov qword [rdi + 0x3f70], r12
mov qword [rdi + 0x3f58], r12
mov qword [rdi + 0x3ef0], r12
lea rcx, [rdi + 0x4610]
call fcn.1400241f0
mov rcx, qword [rdi + 0x4828]
test rcx, rcx
je 0x140028c1a
mov qword [rdi + 0x4820], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028c0d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4828], r12
mov rcx, qword [rdi + 0x4838]
test rcx, rcx
je 0x140028c4c
mov qword [rdi + 0x4830], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028c3f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4838], r12
mov rcx, qword [rdi + 0x4848]
test rcx, rcx
je 0x140028c7e
mov qword [rdi + 0x4840], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028c71
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4848], r12
mov rcx, qword [rdi + 0x4888]
test rcx, rcx
je 0x140028cb0
mov qword [rdi + 0x4880], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028ca3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4888], r12
mov rcx, qword [rdi + 0x4898]
test rcx, rcx
je 0x140028ce2
mov qword [rdi + 0x4890], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028cd5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4898], r12
mov ebp, r12d
cmp dword [rdi + 0x48a8], r12d
jle 0x140028db6
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48b0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140028da4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140028d40
mov rcx, rsi
call fcn.140024060
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028d37
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140028d6d
mov rcx, rsi
call fcn.140024060
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028d63
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14003dd80]
mov edx, 0x10
mov r8d, 2
call fcn.1400cc63c
nop
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028d9b
dec dword [rax + 0xf4]
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 + 0x48a8]
jl 0x140028d00
mov rcx, qword [rdi + 0x48b0]
test rcx, rcx
je 0x140028de8
mov qword [rdi + 0x48a8], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028ddb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b0], r12
lea rcx, [rdi + 0x4b88]
call fcn.14003ddb0
mov rcx, qword [rdi + 0x4bb8]
test rcx, rcx
je 0x140028e26
mov qword [rdi + 0x4bb0], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028e19
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bb8], r12
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140028e58
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028e4b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov ebx, r12d
cmp dword [rdi + 0x4b08], r12d
jle 0x140028ea8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b10]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140028e9a
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028e93
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b08]
jl 0x140028e70
mov rcx, qword [rdi + 0x4b10]
test rcx, rcx
je 0x140028eda
mov qword [rdi + 0x4b08], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028ecd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b10], r12
lea rcx, [rdi + 0x4b38]
call fcn.14003df30
mov esi, r12d
cmp dword [rdi + 0x4b28], r12d
jle 0x140028f45
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b30]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14004a5c0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140028f37
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028f30
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b28]
jl 0x140028f00
mov rcx, qword [rdi + 0x4b30]
test rcx, rcx
je 0x140028f77
mov qword [rdi + 0x4b28], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028f6a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b30], r12
mov rcx, qword [rdi + 0x4b78]
test rcx, rcx
je 0x140028fa9
mov qword [rdi + 0x4b70], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028f9c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b78], r12
mov rcx, qword [rdi + 0x5b90]
test rcx, rcx
je 0x140028fdb
mov qword [rdi + 0x5b88], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140028fce
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b90], r12
mov rcx, qword [rdi + 0x5ba0]
test rcx, rcx
je 0x14002900d
mov qword [rdi + 0x5b98], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029000
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ba0], r12
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x14002903f
mov qword [rdi + 0x4c00], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029032
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c08], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x140029071
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029064
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov rcx, qword [rdi + 0x4c28]
test rcx, rcx
je 0x1400290a3
mov qword [rdi + 0x4c20], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029096
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c28], r12
mov dword [rdi + 0x5a78], r12d
mov rcx, qword [rdi + 0x5a88]
test rcx, rcx
je 0x1400290dc
mov qword [rdi + 0x5a80], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x1400290cf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5a88], r12
mov rcx, qword [rdi + 0x5bf8]
test rcx, rcx
je 0x14002910e
mov qword [rdi + 0x5bf0], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029101
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bf8], r12
mov rcx, qword [rdi + 0x5be8]
test rcx, rcx
je 0x140029140
mov qword [rdi + 0x5be0], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029133
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5be8], r12
cmp qword [rdi + 0x5c68], 0
je 0x140029171
mov rbx, qword [rdi + 0x5c68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14002916a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c68], r12
mov rcx, qword [rdi + 0x5c78]
test rcx, rcx
je 0x1400291a3
mov qword [rdi + 0x5c70], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x140029196
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c78], r12
mov rcx, qword [rdi + 0x5cb0]
test rcx, rcx
je 0x1400291d5
mov qword [rdi + 0x5ca8], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x1400291c8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cb0], r12
mov rcx, qword [rdi + 0x5cc0]
test rcx, rcx
je 0x140029207
mov qword [rdi + 0x5cb8], r12
mov rax, qword [0x14039a558]
test rax, rax
je 0x1400291fa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cc0], r12
mov dword [rdi + 0x5cc8], 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