Function at 0x140007510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x14006a7b0]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000758c
cmp byte [rdi + 1], 0
je 0x14000758c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000758c
mov rcx, rbx
call fcn.140036330
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140007566
call fcn.140008d60
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140007575
call fcn.140008d60
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140007584
call fcn.140008d60
nop
mov rcx, rbx
call fcn.140008d60
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x1400075b2
mov qword [rdi + 0x3eb8], r15
call fcn.140008d60
mov qword [rdi + 0x3ec0], r15
cmp byte [rdi], r15b
je 0x140007c77
cmp byte [rdi + 0x6100], r15b
je 0x140007623
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007623
mov rax, qword [0x14006a7b0]
mov dword [rax + 0x6104], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14001e020
mov rsi, rax
lea rdx, [0x14005a8d4]
mov rcx, rbx
call fcn.140004d20
mov rbx, rax
test rax, rax
je 0x140007623
mov r9, rax
mov r8, qword [rsp + 0x40]
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 rax, qword [0x14006a7b0]
mov rbx, qword [rax + 0x4c38]
movsxd rax, dword [rax + 0x4c30]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x140007652
mov rcx, qword [rbx]
call fcn.140020bf0
add rbx, 8
cmp rbx, rsi
jne 0x140007641
mov ebp, r15d
cmp dword [rdi + 0x60c0], r15d
jle 0x1400076d5
mov r14, r15
mov rax, qword [rdi + 0x60c8]
mov rbx, qword [rax + r14 + 8]
test rbx, rbx
je 0x1400076c7
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x1400076a4
mov rcx, qword [rsi + 0x98]
test rcx, rcx
je 0x14000768d
call fcn.140008d60
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14000769c
call fcn.140008d60
nop
mov rcx, rsi
call fcn.140008d60
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x28], r15
mov qword [rbx + 0x20], r15
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400076bf
call fcn.140008d60
nop
mov rcx, rbx
call fcn.140008d60
inc ebp
add r14, 0x10
cmp ebp, dword [rdi + 0x60c0]
jl 0x140007661
mov rbx, qword [rdi + 0x6150]
movsxd rsi, dword [rdi + 0x6148]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14000770b
nop
cmp dword [rbx + 4], 6
jne 0x140007702
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x1400076f0
mov ebx, r15d
cmp dword [rdi + 0x40e8], r15d
jle 0x14000774e
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x40f0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140007740
mov rcx, rsi
call fcn.1400081f0
mov rcx, rsi
call fcn.140008d60
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x40e8]
jl 0x140007720
mov rcx, qword [rdi + 0x40f0]
test rcx, rcx
je 0x14000776d
mov qword [rdi + 0x40e8], r15
call fcn.140008d60
mov qword [rdi + 0x40f0], r15
mov rcx, qword [rdi + 0x4100]
test rcx, rcx
je 0x14000778c
mov qword [rdi + 0x40f8], r15
call fcn.140008d60
mov qword [rdi + 0x4100], r15
mov rcx, qword [rdi + 0x4110]
test rcx, rcx
je 0x1400077ab
mov qword [rdi + 0x4108], r15
call fcn.140008d60
mov qword [rdi + 0x4110], r15
mov qword [rdi + 0x4148], r15
mov rcx, qword [rdi + 0x4120]
test rcx, rcx
je 0x1400077d1
mov qword [rdi + 0x4118], r15
call fcn.140008d60
mov qword [rdi + 0x4120], r15
mov rcx, qword [rdi + 0x4130]
test rcx, rcx
je 0x1400077f0
mov qword [rdi + 0x4128], r15
call fcn.140008d60
mov qword [rdi + 0x4130], r15
mov qword [rdi + 0x4ca8], r15
mov qword [rdi + 0x4158], r15
mov qword [rdi + 0x4150], r15
mov qword [rdi + 0x41e0], r15
mov qword [rdi + 0x41c8], r15
mov qword [rdi + 0x4160], r15
lea rcx, [rdi + 0x4928]
call fcn.140002f40
mov rcx, qword [rdi + 0x4ba0]
test rcx, rcx
je 0x140007845
mov qword [rdi + 0x4b98], r15
call fcn.140008d60
mov qword [rdi + 0x4ba0], r15
mov rcx, qword [rdi + 0x4bb0]
test rcx, rcx
je 0x140007864
mov qword [rdi + 0x4ba8], r15
call fcn.140008d60
mov qword [rdi + 0x4bb0], r15
mov rcx, qword [rdi + 0x4bc0]
test rcx, rcx
je 0x140007883
mov qword [rdi + 0x4bb8], r15
call fcn.140008d60
mov qword [rdi + 0x4bc0], r15
mov rcx, qword [rdi + 0x4c00]
test rcx, rcx
je 0x1400078a2
mov qword [rdi + 0x4bf8], r15
call fcn.140008d60
mov qword [rdi + 0x4c00], r15
mov rcx, qword [rdi + 0x4c10]
test rcx, rcx
je 0x1400078c1
mov qword [rdi + 0x4c08], r15
call fcn.140008d60
mov qword [rdi + 0x4c10], r15
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x1400078e0
mov qword [rdi + 0x4c18], r15
call fcn.140008d60
mov qword [rdi + 0x4c20], r15
mov qword [rdi + 0x4c58], r15
mov qword [rdi + 0x4c50], r15
mov qword [rdi + 0x4c48], r15
mov ebp, r15d
cmp dword [rdi + 0x4c30], r15d
jle 0x140007997
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x4c38]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007985
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x14000793c
mov rcx, rsi
call fcn.140002dc0
mov rcx, rsi
call fcn.140008d60
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140007959
mov rcx, rsi
call fcn.140002dc0
mov rcx, rsi
call fcn.140008d60
nop
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x14000796b
call fcn.140008d60
nop
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x14000797d
call fcn.140008d60
nop
mov rcx, rbx
call fcn.140008d60
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4c30]
jl 0x140007910
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x1400079b6
mov qword [rdi + 0x4c30], r15
call fcn.140008d60
mov qword [rdi + 0x4c38], r15
lea rcx, [rdi + 0x4fe8]
call fcn.14002a3a0
mov rcx, qword [rdi + 0x5018]
test rcx, rcx
je 0x1400079e1
mov qword [rdi + 0x5010], r15
call fcn.140008d60
mov qword [rdi + 0x5018], r15
mov rcx, qword [rdi + 0x5028]
test rcx, rcx
je 0x140007a00
mov qword [rdi + 0x5020], r15
call fcn.140008d60
mov qword [rdi + 0x5028], r15
mov ebx, r15d
cmp dword [rdi + 0x4f68], r15d
jle 0x140007a35
mov rsi, r15
nop
mov rax, qword [rdi + 0x4f70]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140007a27
call fcn.140008d60
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4f68]
jl 0x140007a10
mov rcx, qword [rdi + 0x4f70]
test rcx, rcx
je 0x140007a54
mov qword [rdi + 0x4f68], r15
call fcn.140008d60
mov qword [rdi + 0x4f70], r15
lea rcx, [rdi + 0x4f98]
call fcn.14002a4a0
mov esi, r15d
cmp dword [rdi + 0x4f88], r15d
jle 0x140007aa2
mov rbp, r15
nop
mov rbx, qword [rdi + 0x4f90]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140035b40
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140007a94
call fcn.140008d60
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4f88]
jl 0x140007a70
mov rcx, qword [rdi + 0x4f90]
test rcx, rcx
je 0x140007ac1
mov qword [rdi + 0x4f88], r15
call fcn.140008d60
mov qword [rdi + 0x4f90], r15
mov rcx, qword [rdi + 0x4fd8]
test rcx, rcx
je 0x140007ae0
mov qword [rdi + 0x4fd0], r15
call fcn.140008d60
mov qword [rdi + 0x4fd8], r15
mov rcx, qword [rdi + 0x6018]
test rcx, rcx
je 0x140007aff
mov qword [rdi + 0x6010], r15
call fcn.140008d60
mov qword [rdi + 0x6018], r15
mov rcx, qword [rdi + 0x6028]
test rcx, rcx
je 0x140007b1e
mov qword [rdi + 0x6020], r15
call fcn.140008d60
mov qword [rdi + 0x6028], r15
mov rcx, qword [rdi + 0x5078]
test rcx, rcx
je 0x140007b3d
mov qword [rdi + 0x5070], r15
call fcn.140008d60
mov qword [rdi + 0x5078], r15
mov rcx, qword [rdi + 0x5088]
test rcx, rcx
je 0x140007b5c
mov qword [rdi + 0x5080], r15
call fcn.140008d60
mov qword [rdi + 0x5088], r15
mov rcx, qword [rdi + 0x5098]
test rcx, rcx
je 0x140007b7b
mov qword [rdi + 0x5090], r15
call fcn.140008d60
mov qword [rdi + 0x5098], r15
mov dword [rdi + 0x5ee8], r15d
mov rcx, qword [rdi + 0x5ef8]
test rcx, rcx
je 0x140007ba1
mov qword [rdi + 0x5ef0], r15
call fcn.140008d60
mov qword [rdi + 0x5ef8], r15
mov rcx, qword [rdi + 0x6130]
test rcx, rcx
je 0x140007bc0
mov qword [rdi + 0x6128], r15
call fcn.140008d60
mov qword [rdi + 0x6130], r15
mov rcx, qword [rdi + 0x6120]
test rcx, rcx
je 0x140007bdf
mov qword [rdi + 0x6118], r15
call fcn.140008d60
mov qword [rdi + 0x6120], r15
cmp qword [rdi + 0x61c0], 0
je 0x140007c10
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 0x140007c09
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x61c0], r15
mov rcx, qword [rdi + 0x61d0]
test rcx, rcx
je 0x140007c2f
mov qword [rdi + 0x61c8], r15
call fcn.140008d60
mov qword [rdi + 0x61d0], r15
mov rcx, qword [rdi + 0x6208]
test rcx, rcx
je 0x140007c4e
mov qword [rdi + 0x6200], r15
call fcn.140008d60
mov qword [rdi + 0x6208], r15
mov rcx, qword [rdi + 0x6218]
test rcx, rcx
je 0x140007c6d
mov qword [rdi + 0x6210], r15
call fcn.140008d60
mov qword [rdi + 0x6218], r15
mov dword [rdi + 0x6220], r15d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret