Function at 0x140004e80
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 [0x140049750]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140004efc
cmp byte [rdi + 1], 0
je 0x140004efc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x140004efc
mov rcx, rbx
call fcn.1400251c0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140004ed6
call fcn.1400060f0
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140004ee5
call fcn.1400060f0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140004ef4
call fcn.1400060f0
nop
mov rcx, rbx
call fcn.1400060f0
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3d78]
test rcx, rcx
je 0x140004f22
mov qword [rdi + 0x3d70], r15
call fcn.1400060f0
mov qword [rdi + 0x3d78], r15
cmp byte [rdi], r15b
je 0x140005517
cmp byte [rdi + 0x5f68], r15b
je 0x140004f93
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140004f93
mov rax, qword [0x140049750]
mov dword [rax + 0x5f6c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140018620
mov rsi, rax
lea rdx, [0x14003c684]
mov rcx, rbx
call fcn.140002e20
mov rbx, rax
test rax, rax
je 0x140004f93
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 rbx, qword [rdi + 0x5fb8]
movsxd rsi, dword [rdi + 0x5fb0]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x140004fcb
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x140004fc2
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x140004fb0
mov ebx, r15d
cmp dword [rdi + 0x3fa0], r15d
jle 0x14000500e
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x3fa8]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140005000
mov rcx, rsi
call fcn.1400059e0
mov rcx, rsi
call fcn.1400060f0
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x3fa0]
jl 0x140004fe0
mov rcx, qword [rdi + 0x3fa8]
test rcx, rcx
je 0x14000502d
mov qword [rdi + 0x3fa0], r15
call fcn.1400060f0
mov qword [rdi + 0x3fa8], r15
mov rcx, qword [rdi + 0x3fb8]
test rcx, rcx
je 0x14000504c
mov qword [rdi + 0x3fb0], r15
call fcn.1400060f0
mov qword [rdi + 0x3fb8], r15
mov rcx, qword [rdi + 0x3fc8]
test rcx, rcx
je 0x14000506b
mov qword [rdi + 0x3fc0], r15
call fcn.1400060f0
mov qword [rdi + 0x3fc8], r15
mov qword [rdi + 0x4000], r15
mov rcx, qword [rdi + 0x3fd8]
test rcx, rcx
je 0x140005091
mov qword [rdi + 0x3fd0], r15
call fcn.1400060f0
mov qword [rdi + 0x3fd8], r15
mov rcx, qword [rdi + 0x3fe8]
test rcx, rcx
je 0x1400050b0
mov qword [rdi + 0x3fe0], r15
call fcn.1400060f0
mov qword [rdi + 0x3fe8], r15
mov qword [rdi + 0x4b18], r15
mov qword [rdi + 0x4010], r15
mov qword [rdi + 0x4008], r15
mov qword [rdi + 0x40a0], r15
mov qword [rdi + 0x4088], r15
mov qword [rdi + 0x4018], r15
lea rcx, [rdi + 0x4818]
call fcn.1400011b0
mov rcx, qword [rdi + 0x4a80]
test rcx, rcx
je 0x140005105
mov qword [rdi + 0x4a78], r15
call fcn.1400060f0
mov qword [rdi + 0x4a80], r15
mov rcx, qword [rdi + 0x4a90]
test rcx, rcx
je 0x140005124
mov qword [rdi + 0x4a88], r15
call fcn.1400060f0
mov qword [rdi + 0x4a90], r15
mov rcx, qword [rdi + 0x4aa0]
test rcx, rcx
je 0x140005143
mov qword [rdi + 0x4a98], r15
call fcn.1400060f0
mov qword [rdi + 0x4aa0], r15
mov rcx, qword [rdi + 0x4ae0]
test rcx, rcx
je 0x140005162
mov qword [rdi + 0x4ad8], r15
call fcn.1400060f0
mov qword [rdi + 0x4ae0], r15
mov rcx, qword [rdi + 0x4af0]
test rcx, rcx
je 0x140005181
mov qword [rdi + 0x4ae8], r15
call fcn.1400060f0
mov qword [rdi + 0x4af0], r15
mov rcx, qword [rdi + 0x4b00]
test rcx, rcx
je 0x1400051a0
mov qword [rdi + 0x4af8], r15
call fcn.1400060f0
mov qword [rdi + 0x4b00], r15
mov ebp, r15d
cmp dword [rdi + 0x4b08], r15d
jle 0x14000522a
mov r14, r15
nop
mov rax, qword [rdi + 0x4b10]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000521c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400051d9
mov rcx, rsi
call fcn.140001030
mov rcx, rsi
call fcn.1400060f0
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x1400051f3
mov rcx, rsi
call fcn.140001030
mov rcx, rsi
call fcn.1400060f0
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x140005205
call fcn.1400060f0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140005214
call fcn.1400060f0
nop
mov rcx, rbx
call fcn.1400060f0
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4b08]
jl 0x1400051b0
mov rcx, qword [rdi + 0x4b10]
test rcx, rcx
je 0x140005249
mov qword [rdi + 0x4b08], r15
call fcn.1400060f0
mov qword [rdi + 0x4b10], r15
lea rcx, [rdi + 0x4e88]
call fcn.1400199f0
mov rcx, qword [rdi + 0x4eb8]
test rcx, rcx
je 0x140005274
mov qword [rdi + 0x4eb0], r15
call fcn.1400060f0
mov qword [rdi + 0x4eb8], r15
mov rcx, qword [rdi + 0x4ec8]
test rcx, rcx
je 0x140005293
mov qword [rdi + 0x4ec0], r15
call fcn.1400060f0
mov qword [rdi + 0x4ec8], r15
mov ebx, r15d
cmp dword [rdi + 0x4e08], r15d
jle 0x1400052d5
mov rsi, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4e10]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400052c7
call fcn.1400060f0
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4e08]
jl 0x1400052b0
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x1400052f4
mov qword [rdi + 0x4e08], r15
call fcn.1400060f0
mov qword [rdi + 0x4e10], r15
lea rcx, [rdi + 0x4e38]
call fcn.140019af0
mov esi, r15d
cmp dword [rdi + 0x4e28], r15d
jle 0x140005342
mov rbp, r15
nop
mov rbx, qword [rdi + 0x4e30]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140024ac0
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140005334
call fcn.1400060f0
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4e28]
jl 0x140005310
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x140005361
mov qword [rdi + 0x4e28], r15
call fcn.1400060f0
mov qword [rdi + 0x4e30], r15
mov rcx, qword [rdi + 0x4e78]
test rcx, rcx
je 0x140005380
mov qword [rdi + 0x4e70], r15
call fcn.1400060f0
mov qword [rdi + 0x4e78], r15
mov rcx, qword [rdi + 0x5ec8]
test rcx, rcx
je 0x14000539f
mov qword [rdi + 0x5ec0], r15
call fcn.1400060f0
mov qword [rdi + 0x5ec8], r15
mov rcx, qword [rdi + 0x5ed8]
test rcx, rcx
je 0x1400053be
mov qword [rdi + 0x5ed0], r15
call fcn.1400060f0
mov qword [rdi + 0x5ed8], r15
mov rcx, qword [rdi + 0x4f18]
test rcx, rcx
je 0x1400053dd
mov qword [rdi + 0x4f10], r15
call fcn.1400060f0
mov qword [rdi + 0x4f18], r15
mov rcx, qword [rdi + 0x4f28]
test rcx, rcx
je 0x1400053fc
mov qword [rdi + 0x4f20], r15
call fcn.1400060f0
mov qword [rdi + 0x4f28], r15
mov rcx, qword [rdi + 0x4f38]
test rcx, rcx
je 0x14000541b
mov qword [rdi + 0x4f30], r15
call fcn.1400060f0
mov qword [rdi + 0x4f38], r15
mov dword [rdi + 0x5d90], r15d
mov rcx, qword [rdi + 0x5da0]
test rcx, rcx
je 0x140005441
mov qword [rdi + 0x5d98], r15
call fcn.1400060f0
mov qword [rdi + 0x5da0], r15
mov rcx, qword [rdi + 0x5f98]
test rcx, rcx
je 0x140005460
mov qword [rdi + 0x5f90], r15
call fcn.1400060f0
mov qword [rdi + 0x5f98], r15
mov rcx, qword [rdi + 0x5f88]
test rcx, rcx
je 0x14000547f
mov qword [rdi + 0x5f80], r15
call fcn.1400060f0
mov qword [rdi + 0x5f88], r15
cmp qword [rdi + 0x6010], 0
je 0x1400054b0
mov rbx, qword [rdi + 0x6010]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400054a9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x6010], r15
mov rcx, qword [rdi + 0x6020]
test rcx, rcx
je 0x1400054cf
mov qword [rdi + 0x6018], r15
call fcn.1400060f0
mov qword [rdi + 0x6020], r15
mov rcx, qword [rdi + 0x6058]
test rcx, rcx
je 0x1400054ee
mov qword [rdi + 0x6050], r15
call fcn.1400060f0
mov qword [rdi + 0x6058], r15
mov rcx, qword [rdi + 0x6068]
test rcx, rcx
je 0x14000550d
mov qword [rdi + 0x6060], r15
call fcn.1400060f0
mov qword [rdi + 0x6068], r15
mov dword [rdi + 0x6070], 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