Function at 0x14008a4c0
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 rdi, rcx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x14008a4f5
cmp byte [rcx + 1], 0
je 0x14008a4f5
mov byte [rax + 0x18], 0
mov rcx, qword [rcx + 0x50]
call fcn.1400b1850
xor r12d, r12d
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x14008ac8d
cmp byte [rdi + 0x54e0], r12b
je 0x14008a576
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14008a576
mov rsi, qword [0x1403e6c88]
mov qword [0x1403e6c88], rdi
mov dword [rdi + 0x54e4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14009c7c0
mov rbp, rax
lea rdx, [0x1402dfde0]
mov rcx, rbx
call fcn.140081ff0
mov rbx, rax
test rax, rax
je 0x14008a57d
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 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]
jmp 0x14008a57d
mov rsi, qword [0x1403e6c88]
mov qword [0x1403e6c88], rdi
call fcn.14009ea60
mov qword [0x1403e6c88], rsi
mov esi, r12d
cmp dword [rdi + 0x54a8], r12d
jle 0x14008a5e2
mov rbp, r12
nop
mov rax, qword [rdi + 0x54b0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x14008a5d4
mov rcx, rbx
call fcn.1400a0360
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a5cb
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x54a8]
jl 0x14008a5a0
mov ebx, r12d
cmp dword [rdi + 0x5528], r12d
jle 0x14008a621
mov rsi, r12
mov rcx, qword [rdi + 0x5530]
cmp dword [rsi + rcx + 4], 6
jne 0x14008a613
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5528]
jl 0x14008a5f1
mov esi, r12d
cmp dword [rdi + 0x3ef8], r12d
jle 0x14008a671
mov r14, r12
mov rax, qword [rdi + 0x3f00]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14008a663
mov rcx, rbx
call fcn.1400868d0
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a65a
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3ef8]
jl 0x14008a630
mov rcx, qword [rdi + 0x3f00]
test rcx, rcx
je 0x14008a6a3
mov qword [rdi + 0x3ef8], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a696
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f00], r12
mov rcx, qword [rdi + 0x3f10]
test rcx, rcx
je 0x14008a6d5
mov qword [rdi + 0x3f08], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a6c8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f10], r12
mov rcx, qword [rdi + 0x3f20]
test rcx, rcx
je 0x14008a707
mov qword [rdi + 0x3f18], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a6fa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f20], r12
mov qword [rdi + 0x3f58], r12
mov rcx, qword [rdi + 0x3f30]
test rcx, rcx
je 0x14008a740
mov qword [rdi + 0x3f28], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a733
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f30], r12
mov rcx, qword [rdi + 0x3f40]
test rcx, rcx
je 0x14008a772
mov qword [rdi + 0x3f38], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a765
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f40], r12
mov qword [rdi + 0x41e0], r12
mov qword [rdi + 0x3f68], r12
mov qword [rdi + 0x3f60], r12
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x3fe8], r12
mov qword [rdi + 0x3f78], r12
mov rcx, qword [rdi + 0x4100]
test rcx, rcx
je 0x14008a7ce
mov qword [rdi + 0x40f8], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a7c1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4100], r12
mov rcx, qword [rdi + 0x4110]
test rcx, rcx
je 0x14008a800
mov qword [rdi + 0x4108], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a7f3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4110], r12
mov rcx, qword [rdi + 0x4120]
test rcx, rcx
je 0x14008a832
mov qword [rdi + 0x4118], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a825
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4120], r12
mov rcx, qword [rdi + 0x4160]
test rcx, rcx
je 0x14008a864
mov qword [rdi + 0x4158], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a857
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4160], r12
mov rcx, qword [rdi + 0x4170]
test rcx, rcx
je 0x14008a896
mov qword [rdi + 0x4168], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a889
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4170], r12
mov qword [rdi + 0x41a8], r12
mov qword [rdi + 0x41a0], r12
mov qword [rdi + 0x4198], r12
mov ebx, r12d
cmp dword [rdi + 0x4180], r12d
jle 0x14008a8de
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4188]
mov rcx, qword [rsi + rcx]
call fcn.1400b19a0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4180]
jl 0x14008a8c0
mov rcx, qword [rdi + 0x4188]
test rcx, rcx
je 0x14008a910
mov qword [rdi + 0x4180], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a903
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4188], r12
lea rcx, [rdi + 0x44a0]
call fcn.1400b0630
mov rcx, qword [rdi + 0x44d0]
test rcx, rcx
je 0x14008a94e
mov qword [rdi + 0x44c8], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a941
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44d0], r12
mov rcx, qword [rdi + 0x44e0]
test rcx, rcx
je 0x14008a980
mov qword [rdi + 0x44d8], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a973
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44e0], r12
mov ebx, r12d
cmp dword [rdi + 0x4420], r12d
jle 0x14008a9c8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4428]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14008a9ba
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a9b3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4420]
jl 0x14008a990
mov rcx, qword [rdi + 0x4428]
test rcx, rcx
je 0x14008a9fa
mov qword [rdi + 0x4420], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008a9ed
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4428], r12
lea rcx, [rdi + 0x4450]
call fcn.1400b07a0
mov esi, r12d
cmp dword [rdi + 0x4440], r12d
jle 0x14008aa65
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4448]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400e5ff0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14008aa57
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008aa50
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4440]
jl 0x14008aa20
mov rcx, qword [rdi + 0x4448]
test rcx, rcx
je 0x14008aa97
mov qword [rdi + 0x4440], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008aa8a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4448], r12
mov rcx, qword [rdi + 0x4490]
test rcx, rcx
je 0x14008aac9
mov qword [rdi + 0x4488], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008aabc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4490], r12
mov rcx, qword [rdi + 0x5468]
test rcx, rcx
je 0x14008aafb
mov qword [rdi + 0x5460], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008aaee
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5468], r12
mov rcx, qword [rdi + 0x5478]
test rcx, rcx
je 0x14008ab2d
mov qword [rdi + 0x5470], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008ab20
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5478], r12
mov rcx, qword [rdi + 0x4508]
test rcx, rcx
je 0x14008ab5f
mov qword [rdi + 0x4500], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008ab52
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4508], r12
mov rcx, qword [rdi + 0x4518]
test rcx, rcx
je 0x14008ab91
mov qword [rdi + 0x4510], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008ab84
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4518], r12
mov rcx, qword [rdi + 0x4528]
test rcx, rcx
je 0x14008abc3
mov qword [rdi + 0x4520], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008abb6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4528], r12
mov rcx, qword [rdi + 0x5510]
test rcx, rcx
je 0x14008abf5
mov qword [rdi + 0x5508], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008abe8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5510], r12
mov rcx, qword [rdi + 0x5500]
test rcx, rcx
je 0x14008ac27
mov qword [rdi + 0x54f8], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008ac1a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5500], r12
cmp qword [rdi + 0x5548], 0
je 0x14008ac58
mov rbx, qword [rdi + 0x5548]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14008ac51
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5548], r12
mov rcx, qword [rdi + 0x5558]
test rcx, rcx
je 0x14008ac8a
mov qword [rdi + 0x5550], r12
mov rax, qword [0x1403e6c88]
test rax, rax
je 0x14008ac7d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5558], r12
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