Function at 0x140006370
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 0x1400063a4
call fcn.140066538
mov r15d, 0x10
mov rdi, qword [r15 + rsi]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000640b
cmp byte [rdi + 1], 0
je 0x14000640b
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000640b
mov rcx, rbx
call fcn.140038d20
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400063e5
call fcn.140007e10
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400063f4
call fcn.140007e10
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140006403
call fcn.140007e10
nop
mov rcx, rbx
call fcn.140007e10
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140006431
mov qword [rdi + 0x3eb8], r12
call fcn.140007e10
mov qword [rdi + 0x3ec0], r12
cmp byte [rdi], r12b
je 0x140006ac7
cmp byte [rdi + 0x6100], r12b
je 0x1400064aa
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400064aa
cmp byte [r14 + rsi], r12b
jne 0x140006457
call fcn.140066538
mov rax, qword [r15 + rsi]
mov dword [rax + 0x6104], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001eb40
mov rbp, rax
lea rdx, [0x140087964]
mov rcx, rbx
call fcn.1400030b0
mov rbx, rax
test rax, rax
je 0x1400064aa
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 0x1400064b5
call fcn.140066538
mov rax, qword [r15 + rsi]
mov rbx, qword [rax + 0x4c38]
movsxd rax, dword [rax + 0x4c30]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x1400064e1
mov rcx, qword [rbx]
call fcn.140021c70
add rbx, 8
cmp rbx, rsi
jne 0x1400064d0
mov ebx, r12d
cmp dword [rdi + 0x60c0], r12d
jle 0x14000651f
mov rbp, r12
mov rax, qword [rdi + 0x60c8]
mov rsi, qword [rax + rbp + 8]
test rsi, rsi
je 0x140006511
mov rcx, rsi
call fcn.140023a30
mov rcx, rsi
call fcn.140007e10
inc ebx
add rbp, 0x10
cmp ebx, dword [rdi + 0x60c0]
jl 0x1400064f0
mov rbx, qword [rdi + 0x6150]
movsxd rsi, dword [rdi + 0x6148]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14000655b
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x140006552
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x140006540
mov ebx, r12d
cmp dword [rdi + 0x40e8], r12d
jle 0x14000659e
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x40f0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140006590
mov rcx, rsi
call fcn.1400070a0
mov rcx, rsi
call fcn.140007e10
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x40e8]
jl 0x140006570
mov rcx, qword [rdi + 0x40f0]
test rcx, rcx
je 0x1400065bd
mov qword [rdi + 0x40e8], r12
call fcn.140007e10
mov qword [rdi + 0x40f0], r12
mov rcx, qword [rdi + 0x4100]
test rcx, rcx
je 0x1400065dc
mov qword [rdi + 0x40f8], r12
call fcn.140007e10
mov qword [rdi + 0x4100], r12
mov rcx, qword [rdi + 0x4110]
test rcx, rcx
je 0x1400065fb
mov qword [rdi + 0x4108], r12
call fcn.140007e10
mov qword [rdi + 0x4110], r12
mov qword [rdi + 0x4148], r12
mov rcx, qword [rdi + 0x4120]
test rcx, rcx
je 0x140006621
mov qword [rdi + 0x4118], r12
call fcn.140007e10
mov qword [rdi + 0x4120], r12
mov rcx, qword [rdi + 0x4130]
test rcx, rcx
je 0x140006640
mov qword [rdi + 0x4128], r12
call fcn.140007e10
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.1400011c0
mov rcx, qword [rdi + 0x4ba0]
test rcx, rcx
je 0x140006695
mov qword [rdi + 0x4b98], r12
call fcn.140007e10
mov qword [rdi + 0x4ba0], r12
mov rcx, qword [rdi + 0x4bb0]
test rcx, rcx
je 0x1400066b4
mov qword [rdi + 0x4ba8], r12
call fcn.140007e10
mov qword [rdi + 0x4bb0], r12
mov rcx, qword [rdi + 0x4bc0]
test rcx, rcx
je 0x1400066d3
mov qword [rdi + 0x4bb8], r12
call fcn.140007e10
mov qword [rdi + 0x4bc0], r12
mov rcx, qword [rdi + 0x4c00]
test rcx, rcx
je 0x1400066f2
mov qword [rdi + 0x4bf8], r12
call fcn.140007e10
mov qword [rdi + 0x4c00], r12
mov rcx, qword [rdi + 0x4c10]
test rcx, rcx
je 0x140006711
mov qword [rdi + 0x4c08], r12
call fcn.140007e10
mov qword [rdi + 0x4c10], r12
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x140006730
mov qword [rdi + 0x4c18], r12
call fcn.140007e10
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 0x1400067e7
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4c38]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400067d5
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x14000678c
mov rcx, rsi
call fcn.140001040
mov rcx, rsi
call fcn.140007e10
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x1400067a9
mov rcx, rsi
call fcn.140001040
mov rcx, rsi
call fcn.140007e10
nop
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x1400067bb
call fcn.140007e10
nop
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x1400067cd
call fcn.140007e10
nop
mov rcx, rbx
call fcn.140007e10
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4c30]
jl 0x140006760
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x140006806
mov qword [rdi + 0x4c30], r12
call fcn.140007e10
mov qword [rdi + 0x4c38], r12
lea rcx, [rdi + 0x4fe8]
call fcn.14002c650
mov rcx, qword [rdi + 0x5018]
test rcx, rcx
je 0x140006831
mov qword [rdi + 0x5010], r12
call fcn.140007e10
mov qword [rdi + 0x5018], r12
mov rcx, qword [rdi + 0x5028]
test rcx, rcx
je 0x140006850
mov qword [rdi + 0x5020], r12
call fcn.140007e10
mov qword [rdi + 0x5028], r12
mov ebx, r12d
cmp dword [rdi + 0x4f68], r12d
jle 0x140006885
mov rsi, r12
nop
mov rax, qword [rdi + 0x4f70]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140006877
call fcn.140007e10
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4f68]
jl 0x140006860
mov rcx, qword [rdi + 0x4f70]
test rcx, rcx
je 0x1400068a4
mov qword [rdi + 0x4f68], r12
call fcn.140007e10
mov qword [rdi + 0x4f70], r12
lea rcx, [rdi + 0x4f98]
call fcn.14002c760
mov esi, r12d
cmp dword [rdi + 0x4f88], r12d
jle 0x1400068f2
mov rbp, r12
nop
mov rbx, qword [rdi + 0x4f90]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140038540
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x1400068e4
call fcn.140007e10
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4f88]
jl 0x1400068c0
mov rcx, qword [rdi + 0x4f90]
test rcx, rcx
je 0x140006911
mov qword [rdi + 0x4f88], r12
call fcn.140007e10
mov qword [rdi + 0x4f90], r12
mov rcx, qword [rdi + 0x4fd8]
test rcx, rcx
je 0x140006930
mov qword [rdi + 0x4fd0], r12
call fcn.140007e10
mov qword [rdi + 0x4fd8], r12
mov rcx, qword [rdi + 0x6018]
test rcx, rcx
je 0x14000694f
mov qword [rdi + 0x6010], r12
call fcn.140007e10
mov qword [rdi + 0x6018], r12
mov rcx, qword [rdi + 0x6028]
test rcx, rcx
je 0x14000696e
mov qword [rdi + 0x6020], r12
call fcn.140007e10
mov qword [rdi + 0x6028], r12
mov rcx, qword [rdi + 0x5078]
test rcx, rcx
je 0x14000698d
mov qword [rdi + 0x5070], r12
call fcn.140007e10
mov qword [rdi + 0x5078], r12
mov rcx, qword [rdi + 0x5088]
test rcx, rcx
je 0x1400069ac
mov qword [rdi + 0x5080], r12
call fcn.140007e10
mov qword [rdi + 0x5088], r12
mov rcx, qword [rdi + 0x5098]
test rcx, rcx
je 0x1400069cb
mov qword [rdi + 0x5090], r12
call fcn.140007e10
mov qword [rdi + 0x5098], r12
mov dword [rdi + 0x5ee8], r12d
mov rcx, qword [rdi + 0x5ef8]
test rcx, rcx
je 0x1400069f1
mov qword [rdi + 0x5ef0], r12
call fcn.140007e10
mov qword [rdi + 0x5ef8], r12
mov rcx, qword [rdi + 0x6130]
test rcx, rcx
je 0x140006a10
mov qword [rdi + 0x6128], r12
call fcn.140007e10
mov qword [rdi + 0x6130], r12
mov rcx, qword [rdi + 0x6120]
test rcx, rcx
je 0x140006a2f
mov qword [rdi + 0x6118], r12
call fcn.140007e10
mov qword [rdi + 0x6120], r12
cmp qword [rdi + 0x61c0], 0
je 0x140006a60
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 0x140006a59
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 0x140006a7f
mov qword [rdi + 0x61c8], r12
call fcn.140007e10
mov qword [rdi + 0x61d0], r12
mov rcx, qword [rdi + 0x6208]
test rcx, rcx
je 0x140006a9e
mov qword [rdi + 0x6200], r12
call fcn.140007e10
mov qword [rdi + 0x6208], r12
mov rcx, qword [rdi + 0x6218]
test rcx, rcx
je 0x140006abd
mov qword [rdi + 0x6210], r12
call fcn.140007e10
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