Function at 0x140010300
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x30
mov rdi, qword [0x1400f7950]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14001034f
cmp byte [rdi + 1], 0
je 0x14001034f
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14001034f
mov rcx, rbx
call fcn.140068da0
mov rax, qword [0x1400f7950]
test rax, rax
je 0x140010346
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 + 0x38], r12
mov rcx, qword [rdi + 0x3d90]
test rcx, rcx
je 0x140010388
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3d88], r12
test rax, rax
je 0x14001037b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
cmp byte [rdi], r12b
je 0x140010c3d
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp byte [rdi + 0x5e18], r12b
je 0x14001040d
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14001040d
mov rax, qword [0x1400f7950]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x5e1c], r12d
call fcn.140026fb0
lea rdx, [0x1400d3e34]
mov rcx, rbx
mov rsi, rax
call fcn.14000c0f0
mov rbx, rax
test rax, rax
je 0x14001040d
mov r8, qword [rsp + 0x50]
mov r9, rax
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 rbp, qword [0x1400f7950]
mov ebx, r12d
cmp dword [rbp + 0x4a20], r12d
jle 0x14001044e
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x4a28]
mov rcx, qword [rcx + rsi]
call fcn.1400296c0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp + 0x4a20]
jl 0x140010430
mov esi, r12d
cmp dword [rdi + 0x5dd8], r12d
jle 0x1400104a2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5de0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140010494
mov rcx, rbx
call fcn.14002b1e0
mov rax, qword [0x1400f7950]
test rax, rax
je 0x14001048b
dec dword [rax + 0xf4]
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 + 0x5dd8]
jl 0x140010460
mov ebx, r12d
cmp dword [rdi + 0x5e60], r12d
jle 0x1400104de
mov rsi, r12
mov rax, qword [rdi + 0x5e68]
cmp dword [rsi + rax + 4], 6
jne 0x1400104d0
movsxd rdx, ebx
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rsi + rax + 0x10]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e60]
jl 0x1400104b1
mov esi, r12d
cmp dword [rdi + 0x3fb8], r12d
jle 0x140010531
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3fc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140010523
mov rcx, rbx
call fcn.140011170
mov rax, qword [0x1400f7950]
test rax, rax
je 0x14001051a
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 + 0x3fb8]
jl 0x1400104f0
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140010563
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3fb8], r12
test rax, rax
je 0x140010556
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
mov r15, qword [rsp + 0x20]
test rcx, rcx
je 0x14001059a
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3fc8], r12
test rax, rax
je 0x14001058d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x1400105cc
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3fd8], r12
test rax, rax
je 0x1400105bf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4018], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x140010605
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3fe8], r12
test rax, rax
je 0x1400105f8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x140010637
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x3ff8], r12
test rax, rax
je 0x14001062a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
lea rcx, [rdi + 0x4750]
mov qword [rdi + 0x4a98], r12
mov qword [rdi + 0x4028], r12
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x4098], r12
mov qword [rdi + 0x4030], r12
call fcn.14000a110
mov rcx, qword [rdi + 0x4990]
test rcx, rcx
je 0x14001069f
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4988], r12
test rax, rax
je 0x140010692
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4990], r12
mov rcx, qword [rdi + 0x49a0]
test rcx, rcx
je 0x1400106d1
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4998], r12
test rax, rax
je 0x1400106c4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a0], r12
mov rcx, qword [rdi + 0x49b0]
test rcx, rcx
je 0x140010703
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x49a8], r12
test rax, rax
je 0x1400106f6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b0], r12
mov rcx, qword [rdi + 0x49f0]
test rcx, rcx
je 0x140010735
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x49e8], r12
test rax, rax
je 0x140010728
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f0], r12
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x140010767
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x49f8], r12
test rax, rax
je 0x14001075a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
mov rcx, qword [rdi + 0x4a10]
test rcx, rcx
je 0x140010799
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4a08], r12
test rax, rax
je 0x14001078c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a10], r12
mov qword [rdi + 0x4a48], r12
mov ebx, r12d
mov qword [rdi + 0x4a40], r12
mov qword [rdi + 0x4a38], r12
cmp dword [rdi + 0x4a20], r12d
jle 0x1400107de
mov rsi, r12
nop dword [rax]
mov rcx, qword [rdi + 0x4a28]
mov rcx, qword [rsi + rcx]
call fcn.1400347b0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a20]
jl 0x1400107c0
mov rcx, qword [rdi + 0x4a28]
test rcx, rcx
je 0x140010810
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4a20], r12
test rax, rax
je 0x140010803
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a28], r12
lea rcx, [rdi + 0x4d80]
call fcn.1400338c0
mov rcx, qword [rdi + 0x4db0]
test rcx, rcx
je 0x14001084e
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4da8], r12
test rax, rax
je 0x140010841
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db0], r12
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x140010880
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4db8], r12
test rax, rax
je 0x140010873
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc0], r12
mov ebx, r12d
cmp dword [rdi + 0x4d00], r12d
jle 0x1400108c7
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d08]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400108b9
mov rax, qword [0x1400f7950]
test rax, rax
je 0x1400108b3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d00]
jl 0x140010890
mov rcx, qword [rdi + 0x4d08]
test rcx, rcx
je 0x1400108f9
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4d00], r12
test rax, rax
je 0x1400108ec
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d08], r12
lea rcx, [rdi + 0x4d30]
call fcn.1400339d0
mov esi, r12d
cmp dword [rdi + 0x4d20], r12d
jle 0x140010963
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x4d28]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140068220
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140010955
mov rax, qword [0x1400f7950]
test rax, rax
je 0x14001094f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d20]
jl 0x140010920
mov rcx, qword [rdi + 0x4d28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14001099f
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4d20], r12
test rax, rax
je 0x140010992
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d28], r12
mov rcx, qword [rdi + 0x4d70]
mov r14, qword [rsp + 0x28]
test rcx, rcx
je 0x1400109d6
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4d68], r12
test rax, rax
je 0x1400109c9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d70], r12
mov rcx, qword [rdi + 0x5d98]
test rcx, rcx
je 0x140010a08
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5d90], r12
test rax, rax
je 0x1400109fb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d98], r12
mov rcx, qword [rdi + 0x5da8]
test rcx, rcx
je 0x140010a3a
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5da0], r12
test rax, rax
je 0x140010a2d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da8], r12
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x140010a6c
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4e08], r12
test rax, rax
je 0x140010a5f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e10], r12
mov rcx, qword [rdi + 0x4e20]
test rcx, rcx
je 0x140010a9e
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4e18], r12
test rax, rax
je 0x140010a91
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x140010ad0
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x4e28], r12
test rax, rax
je 0x140010ac3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e30], r12
mov dword [rdi + 0x5c80], r12d
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x140010b09
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5c88], r12
test rax, rax
je 0x140010afc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c90], r12
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x140010b3b
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5e40], r12
test rax, rax
je 0x140010b2e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e48], r12
mov rcx, qword [rdi + 0x5e38]
test rcx, rcx
je 0x140010b6d
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5e30], r12
test rax, rax
je 0x140010b60
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e38], r12
cmp qword [rdi + 0x5ec8], r12
je 0x140010b9d
mov rbx, qword [rdi + 0x5ec8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140010b96
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5ec8], r12
mov rcx, qword [rdi + 0x5ed8]
test rcx, rcx
je 0x140010bcf
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5ed0], r12
test rax, rax
je 0x140010bc2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ed8], r12
mov rcx, qword [rdi + 0x5f10]
test rcx, rcx
je 0x140010c01
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5f08], r12
test rax, rax
je 0x140010bf4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f10], r12
mov rcx, qword [rdi + 0x5f20]
test rcx, rcx
je 0x140010c33
mov rax, qword [0x1400f7950]
mov qword [rdi + 0x5f18], r12
test rax, rax
je 0x140010c26
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f20], r12
mov dword [rdi + 0x5f28], r12d
mov byte [rdi], r12b
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret