Function at 0x1400057c0
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 [0x14009c828]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000583c
cmp byte [rdi + 1], 0
je 0x14000583c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000583c
mov rcx, rbx
call fcn.1400275a0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140005816
call fcn.140006d90
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140005825
call fcn.140006d90
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140005834
call fcn.140006d90
nop
mov rcx, rbx
call fcn.140006d90
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3d80]
test rcx, rcx
je 0x140005862
mov qword [rdi + 0x3d78], r15
call fcn.140006d90
mov qword [rdi + 0x3d80], r15
cmp byte [rdi], r15b
je 0x140005e57
cmp byte [rdi + 0x5ed0], r15b
je 0x1400058d3
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400058d3
mov rax, qword [0x14009c828]
mov dword [rax + 0x5ed4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140019db0
mov rsi, rax
lea rdx, [0x140055cdc]
mov rcx, rbx
call fcn.140003150
mov rbx, rax
test rax, rax
je 0x1400058d3
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 + 0x5f20]
movsxd rsi, dword [rdi + 0x5f18]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14000590b
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x140005902
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x1400058f0
mov ebx, r15d
cmp dword [rdi + 0x3fa8], r15d
jle 0x14000594e
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x3fb0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140005940
mov rcx, rsi
call fcn.140006320
mov rcx, rsi
call fcn.140006d90
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x3fa8]
jl 0x140005920
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x14000596d
mov qword [rdi + 0x3fa8], r15
call fcn.140006d90
mov qword [rdi + 0x3fb0], r15
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x14000598c
mov qword [rdi + 0x3fb8], r15
call fcn.140006d90
mov qword [rdi + 0x3fc0], r15
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x1400059ab
mov qword [rdi + 0x3fc8], r15
call fcn.140006d90
mov qword [rdi + 0x3fd0], r15
mov qword [rdi + 0x4008], r15
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x1400059d1
mov qword [rdi + 0x3fd8], r15
call fcn.140006d90
mov qword [rdi + 0x3fe0], r15
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x1400059f0
mov qword [rdi + 0x3fe8], r15
call fcn.140006d90
mov qword [rdi + 0x3ff0], r15
mov qword [rdi + 0x4ad8], r15
mov qword [rdi + 0x4018], r15
mov qword [rdi + 0x4010], r15
mov qword [rdi + 0x40a0], r15
mov qword [rdi + 0x4088], r15
mov qword [rdi + 0x4020], r15
lea rcx, [rdi + 0x47e8]
call fcn.140001360
mov rcx, qword [rdi + 0x4a38]
test rcx, rcx
je 0x140005a45
mov qword [rdi + 0x4a30], r15
call fcn.140006d90
mov qword [rdi + 0x4a38], r15
mov rcx, qword [rdi + 0x4a48]
test rcx, rcx
je 0x140005a64
mov qword [rdi + 0x4a40], r15
call fcn.140006d90
mov qword [rdi + 0x4a48], r15
mov rcx, qword [rdi + 0x4a58]
test rcx, rcx
je 0x140005a83
mov qword [rdi + 0x4a50], r15
call fcn.140006d90
mov qword [rdi + 0x4a58], r15
mov rcx, qword [rdi + 0x4a98]
test rcx, rcx
je 0x140005aa2
mov qword [rdi + 0x4a90], r15
call fcn.140006d90
mov qword [rdi + 0x4a98], r15
mov rcx, qword [rdi + 0x4aa8]
test rcx, rcx
je 0x140005ac1
mov qword [rdi + 0x4aa0], r15
call fcn.140006d90
mov qword [rdi + 0x4aa8], r15
mov rcx, qword [rdi + 0x4ab8]
test rcx, rcx
je 0x140005ae0
mov qword [rdi + 0x4ab0], r15
call fcn.140006d90
mov qword [rdi + 0x4ab8], r15
mov ebp, r15d
cmp dword [rdi + 0x4ac8], r15d
jle 0x140005b6a
mov r14, r15
nop
mov rax, qword [rdi + 0x4ad0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140005b5c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140005b19
mov rcx, rsi
call fcn.1400011e0
mov rcx, rsi
call fcn.140006d90
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140005b33
mov rcx, rsi
call fcn.1400011e0
mov rcx, rsi
call fcn.140006d90
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x140005b45
call fcn.140006d90
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140005b54
call fcn.140006d90
nop
mov rcx, rbx
call fcn.140006d90
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4ac8]
jl 0x140005af0
mov rcx, qword [rdi + 0x4ad0]
test rcx, rcx
je 0x140005b89
mov qword [rdi + 0x4ac8], r15
call fcn.140006d90
mov qword [rdi + 0x4ad0], r15
lea rcx, [rdi + 0x4e18]
call fcn.14001b110
mov rcx, qword [rdi + 0x4e48]
test rcx, rcx
je 0x140005bb4
mov qword [rdi + 0x4e40], r15
call fcn.140006d90
mov qword [rdi + 0x4e48], r15
mov rcx, qword [rdi + 0x4e58]
test rcx, rcx
je 0x140005bd3
mov qword [rdi + 0x4e50], r15
call fcn.140006d90
mov qword [rdi + 0x4e58], r15
mov ebx, r15d
cmp dword [rdi + 0x4d98], r15d
jle 0x140005c15
mov rsi, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4da0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140005c07
call fcn.140006d90
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d98]
jl 0x140005bf0
mov rcx, qword [rdi + 0x4da0]
test rcx, rcx
je 0x140005c34
mov qword [rdi + 0x4d98], r15
call fcn.140006d90
mov qword [rdi + 0x4da0], r15
lea rcx, [rdi + 0x4dc8]
call fcn.14001b210
mov esi, r15d
cmp dword [rdi + 0x4db8], r15d
jle 0x140005c82
mov rbp, r15
nop
mov rbx, qword [rdi + 0x4dc0]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140026a30
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140005c74
call fcn.140006d90
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4db8]
jl 0x140005c50
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x140005ca1
mov qword [rdi + 0x4db8], r15
call fcn.140006d90
mov qword [rdi + 0x4dc0], r15
mov rcx, qword [rdi + 0x4e08]
test rcx, rcx
je 0x140005cc0
mov qword [rdi + 0x4e00], r15
call fcn.140006d90
mov qword [rdi + 0x4e08], r15
mov rcx, qword [rdi + 0x5e30]
test rcx, rcx
je 0x140005cdf
mov qword [rdi + 0x5e28], r15
call fcn.140006d90
mov qword [rdi + 0x5e30], r15
mov rcx, qword [rdi + 0x5e40]
test rcx, rcx
je 0x140005cfe
mov qword [rdi + 0x5e38], r15
call fcn.140006d90
mov qword [rdi + 0x5e40], r15
mov rcx, qword [rdi + 0x4ea8]
test rcx, rcx
je 0x140005d1d
mov qword [rdi + 0x4ea0], r15
call fcn.140006d90
mov qword [rdi + 0x4ea8], r15
mov rcx, qword [rdi + 0x4eb8]
test rcx, rcx
je 0x140005d3c
mov qword [rdi + 0x4eb0], r15
call fcn.140006d90
mov qword [rdi + 0x4eb8], r15
mov rcx, qword [rdi + 0x4ec8]
test rcx, rcx
je 0x140005d5b
mov qword [rdi + 0x4ec0], r15
call fcn.140006d90
mov qword [rdi + 0x4ec8], r15
mov dword [rdi + 0x5d18], r15d
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x140005d81
mov qword [rdi + 0x5d20], r15
call fcn.140006d90
mov qword [rdi + 0x5d28], r15
mov rcx, qword [rdi + 0x5f00]
test rcx, rcx
je 0x140005da0
mov qword [rdi + 0x5ef8], r15
call fcn.140006d90
mov qword [rdi + 0x5f00], r15
mov rcx, qword [rdi + 0x5ef0]
test rcx, rcx
je 0x140005dbf
mov qword [rdi + 0x5ee8], r15
call fcn.140006d90
mov qword [rdi + 0x5ef0], r15
cmp qword [rdi + 0x5f78], 0
je 0x140005df0
mov rbx, qword [rdi + 0x5f78]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140005de9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5f78], r15
mov rcx, qword [rdi + 0x5f88]
test rcx, rcx
je 0x140005e0f
mov qword [rdi + 0x5f80], r15
call fcn.140006d90
mov qword [rdi + 0x5f88], r15
mov rcx, qword [rdi + 0x5fc0]
test rcx, rcx
je 0x140005e2e
mov qword [rdi + 0x5fb8], r15
call fcn.140006d90
mov qword [rdi + 0x5fc0], r15
mov rcx, qword [rdi + 0x5fd0]
test rcx, rcx
je 0x140005e4d
mov qword [rdi + 0x5fc8], r15
call fcn.140006d90
mov qword [rdi + 0x5fd0], r15
mov dword [rdi + 0x5fd8], 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