Function at 0x140059c50
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140059caf
cmp byte [rcx + 1], 0
je 0x140059caf
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140059caf
mov rcx, rdi
call fcn.140071e00
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140059ca6
dec dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x14005a359
cmp byte [rbx + 0x3020], r15b
je 0x140059d39
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x140059d39
mov rdi, qword [0x1401414b0]
mov qword [0x1401414b0], rbx
mov dword [rbx + 0x3024], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140065f70
mov rbp, rax
lea rdx, [0x1400fe7c8]
mov rcx, rsi
call fcn.140055af0
mov rsi, rax
test rax, rax
je 0x140059d30
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x1401414b0], rdi
jmp 0x140059d40
mov rdi, qword [0x1401414b0]
mov ebp, r15d
cmp dword [rbx + 0x1a30], r15d
jle 0x140059e7d
mov r14, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x1a38]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140059e6b
mov rcx, qword [rsi]
test rcx, rcx
je 0x140059d8d
test rdi, rdi
je 0x140059d87
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, r15d
cmp dword [rsi + 0x2b0], r15d
je 0x140059dc0
nop dword [rax]
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rsi + 0x2b8]
call fcn.1400574c0
inc edi
cmp edi, dword [rsi + 0x2b0]
jne 0x140059da0
lea rcx, [rsi + 0x2d0]
call fcn.1400544d0
nop
mov rcx, qword [rsi + 0x2b8]
test rcx, rcx
je 0x140059df2
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140059deb
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsi + 0x2a8]
test rcx, rcx
je 0x140059e17
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140059e10
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rsi + 0xd0]
call fcn.1400573f0
nop
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x140059e49
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140059e42
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x1401414b0]
test rax, rax
je 0x140059e5b
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [0x1401414b0]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1a30]
jl 0x140059d60
mov rcx, qword [rbx + 0x1a38]
test rcx, rcx
je 0x140059eaf
mov qword [rbx + 0x1a30], r15
test rdi, rdi
je 0x140059e9b
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a38], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1a48]
test rcx, rcx
je 0x140059ee1
mov qword [rbx + 0x1a40], r15
test rdi, rdi
je 0x140059ecd
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a48], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1a58]
test rcx, rcx
je 0x140059f13
mov qword [rbx + 0x1a50], r15
test rdi, rdi
je 0x140059eff
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a58], r15
mov rdi, qword [0x1401414b0]
mov qword [rbx + 0x1a88], r15
mov rcx, qword [rbx + 0x1a68]
test rcx, rcx
je 0x140059f4c
mov qword [rbx + 0x1a60], r15
test rdi, rdi
je 0x140059f38
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a68], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1a78]
test rcx, rcx
je 0x140059f7e
mov qword [rbx + 0x1a70], r15
test rdi, rdi
je 0x140059f6a
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a78], r15
mov rdi, qword [0x1401414b0]
mov qword [rbx + 0x1c08], r15
mov qword [rbx + 0x1aa0], r15
mov qword [rbx + 0x1a98], r15
mov qword [rbx + 0x1a90], r15
mov qword [rbx + 0x1b20], r15
mov qword [rbx + 0x1b08], r15
mov qword [rbx + 0x1aa8], r15
mov rcx, qword [rbx + 0x1bc0]
test rcx, rcx
je 0x140059fe1
mov qword [rbx + 0x1bb8], r15
test rdi, rdi
je 0x140059fcd
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bc0], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1bd0]
test rcx, rcx
je 0x14005a013
mov qword [rbx + 0x1bc8], r15
test rdi, rdi
je 0x140059fff
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bd0], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1be0]
test rcx, rcx
je 0x14005a045
mov qword [rbx + 0x1bd8], r15
test rdi, rdi
je 0x14005a031
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1be0], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1bf0]
test rcx, rcx
je 0x14005a077
mov qword [rbx + 0x1be8], r15
test rdi, rdi
je 0x14005a063
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bf0], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1c00]
test rcx, rcx
je 0x14005a0b0
mov qword [rbx + 0x1bf8], r15
test rdi, rdi
je 0x14005a095
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c00], r15
mov rdi, qword [0x1401414b0]
nop dword [rax]
mov rcx, qword [rbx + 0x1dc8]
test rcx, rcx
je 0x14005a0e2
mov qword [rbx + 0x1dc0], r15
test rdi, rdi
je 0x14005a0ce
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dc8], r15
mov rdi, qword [0x1401414b0]
mov rcx, qword [rbx + 0x1dd8]
test rcx, rcx
je 0x14005a10d
mov qword [rbx + 0x1dd0], r15
test rdi, rdi
je 0x14005a100
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dd8], r15
lea rcx, [rbx + 0x1de8]
call fcn.14006ed10
lea rcx, [rbx + 0x1ec8]
call fcn.14006ed10
lea rcx, [rbx + 0x2058]
call fcn.140066a10
mov rcx, qword [rbx + 0x2088]
test rcx, rcx
je 0x14005a163
mov qword [rbx + 0x2080], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a156
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2088], r15
mov rcx, qword [rbx + 0x2098]
test rcx, rcx
je 0x14005a195
mov qword [rbx + 0x2090], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a188
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2098], r15
mov rcx, qword [rbx + 0x2ff8]
test rcx, rcx
je 0x14005a1c7
mov qword [rbx + 0x2ff0], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a1ba
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ff8], r15
mov rcx, qword [rbx + 0x3008]
test rcx, rcx
je 0x14005a1f9
mov qword [rbx + 0x3000], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a1ec
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3008], r15
mov rcx, qword [rbx + 0x20c0]
test rcx, rcx
je 0x14005a22b
mov qword [rbx + 0x20b8], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a21e
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20c0], r15
mov rcx, qword [rbx + 0x20d0]
test rcx, rcx
je 0x14005a25d
mov qword [rbx + 0x20c8], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a250
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20d0], r15
mov rcx, qword [rbx + 0x20e0]
test rcx, rcx
je 0x14005a28f
mov qword [rbx + 0x20d8], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a282
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20e0], r15
mov rcx, qword [rbx + 0x3050]
test rcx, rcx
je 0x14005a2c1
mov qword [rbx + 0x3048], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a2b4
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3050], r15
mov rcx, qword [rbx + 0x3040]
test rcx, rcx
je 0x14005a2f3
mov qword [rbx + 0x3038], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a2e6
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3040], r15
cmp qword [rbx + 0x3060], 0
je 0x14005a324
mov rdi, qword [rbx + 0x3060]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14005a31d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3060], r15
mov rcx, qword [rbx + 0x3070]
test rcx, rcx
je 0x14005a356
mov qword [rbx + 0x3068], r15
mov rax, qword [0x1401414b0]
test rax, rax
je 0x14005a349
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3070], r15
mov byte [rbx], 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