Function at 0x140006950
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 gs:[0x58]
mov rsi, qword [rax]
mov r14d, 8
cmp byte [r14 + rsi], 0
jne 0x140006984
call fcn.140082398
mov r15d, 0x10
mov rdi, qword [r15 + rsi]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1400069eb
cmp byte [rdi + 1], 0
je 0x1400069eb
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x1400069eb
mov rcx, rbx
call fcn.14003a540
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400069c5
call fcn.1400083f0
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400069d4
call fcn.1400083f0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400069e3
call fcn.1400083f0
nop
mov rcx, rbx
call fcn.1400083f0
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140006a11
mov qword [rdi + 0x3eb8], r12
call fcn.1400083f0
mov qword [rdi + 0x3ec0], r12
cmp byte [rdi], r12b
je 0x1400070a7
cmp byte [rdi + 0x6100], r12b
je 0x140006a8a
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140006a8a
cmp byte [r14 + rsi], r12b
jne 0x140006a37
call fcn.140082398
mov rax, qword [r15 + rsi]
mov dword [rax + 0x6104], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001fc10
mov rbp, rax
lea rdx, [0x1400a3ab4]
mov rcx, rbx
call fcn.140003390
mov rbx, rax
test rax, rax
je 0x140006a8a
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 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]
cmp byte [r14 + rsi], r12b
jne 0x140006a95
call fcn.140082398
mov rax, qword [r15 + rsi]
mov rbx, qword [rax + 0x4c38]
movsxd rax, dword [rax + 0x4c30]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x140006ac1
mov rcx, qword [rbx]
call fcn.140022d40
add rbx, 8
cmp rbx, rsi
jne 0x140006ab0
mov ebx, r12d
cmp dword [rdi + 0x60c0], r12d
jle 0x140006aff
mov rbp, r12
mov rax, qword [rdi + 0x60c8]
mov rsi, qword [rax + rbp + 8]
test rsi, rsi
je 0x140006af1
mov rcx, rsi
call fcn.140024b00
mov rcx, rsi
call fcn.1400083f0
inc ebx
add rbp, 0x10
cmp ebx, dword [rdi + 0x60c0]
jl 0x140006ad0
mov rbx, qword [rdi + 0x6150]
movsxd rsi, dword [rdi + 0x6148]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x140006b3b
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x140006b32
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x140006b20
mov ebx, r12d
cmp dword [rdi + 0x40e8], r12d
jle 0x140006b7e
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x40f0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140006b70
mov rcx, rsi
call fcn.140007680
mov rcx, rsi
call fcn.1400083f0
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x40e8]
jl 0x140006b50
mov rcx, qword [rdi + 0x40f0]
test rcx, rcx
je 0x140006b9d
mov qword [rdi + 0x40e8], r12
call fcn.1400083f0
mov qword [rdi + 0x40f0], r12
mov rcx, qword [rdi + 0x4100]
test rcx, rcx
je 0x140006bbc
mov qword [rdi + 0x40f8], r12
call fcn.1400083f0
mov qword [rdi + 0x4100], r12
mov rcx, qword [rdi + 0x4110]
test rcx, rcx
je 0x140006bdb
mov qword [rdi + 0x4108], r12
call fcn.1400083f0
mov qword [rdi + 0x4110], r12
mov qword [rdi + 0x4148], r12
mov rcx, qword [rdi + 0x4120]
test rcx, rcx
je 0x140006c01
mov qword [rdi + 0x4118], r12
call fcn.1400083f0
mov qword [rdi + 0x4120], r12
mov rcx, qword [rdi + 0x4130]
test rcx, rcx
je 0x140006c20
mov qword [rdi + 0x4128], r12
call fcn.1400083f0
mov qword [rdi + 0x4130], r12
mov qword [rdi + 0x4ca8], r12
mov qword [rdi + 0x4158], r12
mov qword [rdi + 0x4150], r12
mov qword [rdi + 0x41e0], r12
mov qword [rdi + 0x41c8], r12
mov qword [rdi + 0x4160], r12
lea rcx, [rdi + 0x4928]
call fcn.1400011f0
mov rcx, qword [rdi + 0x4ba0]
test rcx, rcx
je 0x140006c75
mov qword [rdi + 0x4b98], r12
call fcn.1400083f0
mov qword [rdi + 0x4ba0], r12
mov rcx, qword [rdi + 0x4bb0]
test rcx, rcx
je 0x140006c94
mov qword [rdi + 0x4ba8], r12
call fcn.1400083f0
mov qword [rdi + 0x4bb0], r12
mov rcx, qword [rdi + 0x4bc0]
test rcx, rcx
je 0x140006cb3
mov qword [rdi + 0x4bb8], r12
call fcn.1400083f0
mov qword [rdi + 0x4bc0], r12
mov rcx, qword [rdi + 0x4c00]
test rcx, rcx
je 0x140006cd2
mov qword [rdi + 0x4bf8], r12
call fcn.1400083f0
mov qword [rdi + 0x4c00], r12
mov rcx, qword [rdi + 0x4c10]
test rcx, rcx
je 0x140006cf1
mov qword [rdi + 0x4c08], r12
call fcn.1400083f0
mov qword [rdi + 0x4c10], r12
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x140006d10
mov qword [rdi + 0x4c18], r12
call fcn.1400083f0
mov qword [rdi + 0x4c20], r12
mov qword [rdi + 0x4c58], r12
mov qword [rdi + 0x4c50], r12
mov qword [rdi + 0x4c48], r12
mov ebp, r12d
cmp dword [rdi + 0x4c30], r12d
jle 0x140006dc7
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4c38]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006db5
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x140006d6c
mov rcx, rsi
call fcn.140001070
mov rcx, rsi
call fcn.1400083f0
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140006d89
mov rcx, rsi
call fcn.140001070
mov rcx, rsi
call fcn.1400083f0
nop
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x140006d9b
call fcn.1400083f0
nop
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x140006dad
call fcn.1400083f0
nop
mov rcx, rbx
call fcn.1400083f0
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4c30]
jl 0x140006d40
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x140006de6
mov qword [rdi + 0x4c30], r12
call fcn.1400083f0
mov qword [rdi + 0x4c38], r12
lea rcx, [rdi + 0x4fe8]
call fcn.14002d870
mov rcx, qword [rdi + 0x5018]
test rcx, rcx
je 0x140006e11
mov qword [rdi + 0x5010], r12
call fcn.1400083f0
mov qword [rdi + 0x5018], r12
mov rcx, qword [rdi + 0x5028]
test rcx, rcx
je 0x140006e30
mov qword [rdi + 0x5020], r12
call fcn.1400083f0
mov qword [rdi + 0x5028], r12
mov ebx, r12d
cmp dword [rdi + 0x4f68], r12d
jle 0x140006e65
mov rsi, r12
nop
mov rax, qword [rdi + 0x4f70]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140006e57
call fcn.1400083f0
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4f68]
jl 0x140006e40
mov rcx, qword [rdi + 0x4f70]
test rcx, rcx
je 0x140006e84
mov qword [rdi + 0x4f68], r12
call fcn.1400083f0
mov qword [rdi + 0x4f70], r12
lea rcx, [rdi + 0x4f98]
call fcn.14002d980
mov esi, r12d
cmp dword [rdi + 0x4f88], r12d
jle 0x140006ed2
mov rbp, r12
nop
mov rbx, qword [rdi + 0x4f90]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.1400398e0
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140006ec4
call fcn.1400083f0
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4f88]
jl 0x140006ea0
mov rcx, qword [rdi + 0x4f90]
test rcx, rcx
je 0x140006ef1
mov qword [rdi + 0x4f88], r12
call fcn.1400083f0
mov qword [rdi + 0x4f90], r12
mov rcx, qword [rdi + 0x4fd8]
test rcx, rcx
je 0x140006f10
mov qword [rdi + 0x4fd0], r12
call fcn.1400083f0
mov qword [rdi + 0x4fd8], r12
mov rcx, qword [rdi + 0x6018]
test rcx, rcx
je 0x140006f2f
mov qword [rdi + 0x6010], r12
call fcn.1400083f0
mov qword [rdi + 0x6018], r12
mov rcx, qword [rdi + 0x6028]
test rcx, rcx
je 0x140006f4e
mov qword [rdi + 0x6020], r12
call fcn.1400083f0
mov qword [rdi + 0x6028], r12
mov rcx, qword [rdi + 0x5078]
test rcx, rcx
je 0x140006f6d
mov qword [rdi + 0x5070], r12
call fcn.1400083f0
mov qword [rdi + 0x5078], r12
mov rcx, qword [rdi + 0x5088]
test rcx, rcx
je 0x140006f8c
mov qword [rdi + 0x5080], r12
call fcn.1400083f0
mov qword [rdi + 0x5088], r12
mov rcx, qword [rdi + 0x5098]
test rcx, rcx
je 0x140006fab
mov qword [rdi + 0x5090], r12
call fcn.1400083f0
mov qword [rdi + 0x5098], r12
mov dword [rdi + 0x5ee8], r12d
mov rcx, qword [rdi + 0x5ef8]
test rcx, rcx
je 0x140006fd1
mov qword [rdi + 0x5ef0], r12
call fcn.1400083f0
mov qword [rdi + 0x5ef8], r12
mov rcx, qword [rdi + 0x6130]
test rcx, rcx
je 0x140006ff0
mov qword [rdi + 0x6128], r12
call fcn.1400083f0
mov qword [rdi + 0x6130], r12
mov rcx, qword [rdi + 0x6120]
test rcx, rcx
je 0x14000700f
mov qword [rdi + 0x6118], r12
call fcn.1400083f0
mov qword [rdi + 0x6120], r12
cmp qword [rdi + 0x61c0], 0
je 0x140007040
mov rbx, qword [rdi + 0x61c0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140007039
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x61c0], r12
mov rcx, qword [rdi + 0x61d0]
test rcx, rcx
je 0x14000705f
mov qword [rdi + 0x61c8], r12
call fcn.1400083f0
mov qword [rdi + 0x61d0], r12
mov rcx, qword [rdi + 0x6208]
test rcx, rcx
je 0x14000707e
mov qword [rdi + 0x6200], r12
call fcn.1400083f0
mov qword [rdi + 0x6208], r12
mov rcx, qword [rdi + 0x6218]
test rcx, rcx
je 0x14000709d
mov qword [rdi + 0x6210], r12
call fcn.1400083f0
mov qword [rdi + 0x6218], r12
mov dword [rdi + 0x6220], 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