Function at 0x14003c870
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x14003c8c7
cmp byte [rcx + 1], 0
je 0x14003c8c7
mov byte [rax + 0x18], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14003c8c7
mov rcx, rdi
call fcn.140067740
mov rax, qword [0x140166040]
test rax, rax
je 0x14003c8b8
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x14003d082
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3230], r15b
je 0x14003c954
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14003c954
mov rsi, qword [0x140166040]
lea rcx, [rsp + 0x40]
mov qword [0x140166040], rbx
mov dword [rbx + 0x3234], r15d
mov qword [rsp + 0x40], r15
call fcn.14004d110
lea rdx, [0x140114aac]
mov rcx, rdi
mov rbp, rax
call fcn.140036e30
mov rdi, rax
test rax, rax
je 0x14003c95b
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov r9, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14003c95b
mov rsi, qword [0x140166040]
mov qword [0x140166040], rbx
call fcn.140050020
mov eax, dword [rbx + 0x31f8]
mov qword [0x140166040], rsi
mov esi, r15d
test eax, eax
jle 0x14003ca05
mov qword [rsp + 0x58], r14
mov rbp, r15
mov r14, r15
nop word [rax + rax]
test rbp, rbp
js 0x14003c999
cmp esi, eax
jl 0x14003c9b3
mov r8d, 0x6c7
lea rdx, str.D:SourcesGengarScannerimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x3200]
mov rdi, qword [rax + r14 + 8]
test rdi, rdi
je 0x14003c9ed
mov rcx, rdi
call fcn.140051ee0
mov rax, qword [0x140166040]
test rax, rax
je 0x14003c9de
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [rbx + 0x31f8]
inc esi
inc rbp
add r14, 0x10
cmp esi, eax
jl 0x14003c990
mov r14, qword [rsp + 0x58]
mov edx, 6
mov rcx, rbx
call fcn.140039b90
mov eax, dword [rbx + 0x1cb8]
mov ebp, r15d
test eax, eax
jle 0x14003ca8d
mov rsi, r15
test rsi, rsi
js 0x14003ca2b
cmp ebp, eax
jl 0x14003ca45
mov r8d, 0x6c7
lea rdx, str.D:SourcesGengarScannerimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1cc0]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x14003ca7e
mov rcx, rdi
call fcn.140039240
mov rax, qword [0x140166040]
test rax, rax
je 0x14003ca6f
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [rbx + 0x1cb8]
inc ebp
inc rsi
cmp ebp, eax
jl 0x14003ca22
mov rcx, qword [rbx + 0x1cc0]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x14003caca
mov rax, qword [0x140166040]
mov qword [rbx + 0x1cb8], r15
test rax, rax
je 0x14003cab7
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cc0], r15
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x14003cb02
mov rax, qword [0x140166040]
mov qword [rbx + 0x1cc8], r15
test rax, rax
je 0x14003caef
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x14003cb3a
mov rax, qword [0x140166040]
mov qword [rbx + 0x1cd8], r15
test rax, rax
je 0x14003cb27
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ce0], r15
mov qword [rbx + 0x1d18], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x14003cb79
mov rax, qword [0x140166040]
mov qword [rbx + 0x1ce8], r15
test rax, rax
je 0x14003cb66
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cf0], r15
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x14003cbb1
mov rax, qword [0x140166040]
mov qword [rbx + 0x1cf8], r15
test rax, rax
je 0x14003cb9e
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d00], r15
mov qword [rbx + 0x1f88], r15
mov qword [rbx + 0x1d28], r15
mov qword [rbx + 0x1d20], r15
mov qword [rbx + 0x1db0], r15
mov qword [rbx + 0x1d98], r15
mov qword [rbx + 0x1d38], r15
mov rcx, qword [rbx + 0x1eb0]
test rcx, rcx
je 0x14003cc13
mov rax, qword [0x140166040]
mov qword [rbx + 0x1ea8], r15
test rax, rax
je 0x14003cc00
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1eb0], r15
mov rcx, qword [rbx + 0x1ec0]
test rcx, rcx
je 0x14003cc4b
mov rax, qword [0x140166040]
mov qword [rbx + 0x1eb8], r15
test rax, rax
je 0x14003cc38
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ec0], r15
mov rcx, qword [rbx + 0x1ed0]
test rcx, rcx
je 0x14003cc83
mov rax, qword [0x140166040]
mov qword [rbx + 0x1ec8], r15
test rax, rax
je 0x14003cc70
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ed0], r15
mov rcx, qword [rbx + 0x1f10]
test rcx, rcx
je 0x14003ccbb
mov rax, qword [0x140166040]
mov qword [rbx + 0x1f08], r15
test rax, rax
je 0x14003cca8
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f10], r15
mov rcx, qword [rbx + 0x1f20]
test rcx, rcx
je 0x14003ccf3
mov rax, qword [0x140166040]
mov qword [rbx + 0x1f18], r15
test rax, rax
je 0x14003cce0
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f20], r15
mov eax, dword [rbx + 0x1f28]
mov edi, r15d
mov qword [rbx + 0x1f50], r15
mov qword [rbx + 0x1f48], r15
mov qword [rbx + 0x1f40], r15
test eax, eax
jle 0x14003cd5a
mov rsi, r15
test rsi, rsi
js 0x14003cd21
cmp edi, eax
jl 0x14003cd3b
mov r8d, 0x6c7
lea rdx, str.D:SourcesGengarScannerimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x1f30]
mov rcx, qword [rcx + rsi*8]
call fcn.14005b4f0
mov eax, dword [rbx + 0x1f28]
inc edi
inc rsi
cmp edi, eax
jl 0x14003cd18
mov rcx, qword [rbx + 0x1f30]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x14003cd97
mov rax, qword [0x140166040]
mov qword [rbx + 0x1f28], r15
test rax, rax
je 0x14003cd84
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f30], r15
lea rcx, [rbx + 0x2218]
call fcn.14005a450
mov rcx, qword [rbx + 0x2248]
test rcx, rcx
je 0x14003cddb
mov rax, qword [0x140166040]
mov qword [rbx + 0x2240], r15
test rax, rax
je 0x14003cdc8
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2248], r15
mov rcx, qword [rbx + 0x2258]
test rcx, rcx
je 0x14003ce13
mov rax, qword [0x140166040]
mov qword [rbx + 0x2250], r15
test rax, rax
je 0x14003ce00
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2258], r15
lea rcx, [rbx + 0x21b8]
call fcn.14005a640
mov rcx, qword [rbx + 0x21e8]
test rcx, rcx
je 0x14003ce57
mov rax, qword [0x140166040]
mov qword [rbx + 0x21e0], r15
test rax, rax
je 0x14003ce44
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x21e8], r15
mov rcx, qword [rbx + 0x2208]
test rcx, rcx
je 0x14003ce8f
mov rax, qword [0x140166040]
mov qword [rbx + 0x2200], r15
test rax, rax
je 0x14003ce7c
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2208], r15
mov rcx, qword [rbx + 0x31c0]
test rcx, rcx
je 0x14003cec7
mov rax, qword [0x140166040]
mov qword [rbx + 0x31b8], r15
test rax, rax
je 0x14003ceb4
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x31c0], r15
mov rcx, qword [rbx + 0x31d0]
test rcx, rcx
je 0x14003ceff
mov rax, qword [0x140166040]
mov qword [rbx + 0x31c8], r15
test rax, rax
je 0x14003ceec
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x31d0], r15
mov rcx, qword [rbx + 0x2280]
test rcx, rcx
je 0x14003cf37
mov rax, qword [0x140166040]
mov qword [rbx + 0x2278], r15
test rax, rax
je 0x14003cf24
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2280], r15
mov rcx, qword [rbx + 0x2290]
test rcx, rcx
je 0x14003cf6f
mov rax, qword [0x140166040]
mov qword [rbx + 0x2288], r15
test rax, rax
je 0x14003cf5c
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2290], r15
mov rcx, qword [rbx + 0x22a0]
test rcx, rcx
je 0x14003cfa7
mov rax, qword [0x140166040]
mov qword [rbx + 0x2298], r15
test rax, rax
je 0x14003cf94
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x22a0], r15
mov rcx, qword [rbx + 0x3260]
test rcx, rcx
je 0x14003cfdf
mov rax, qword [0x140166040]
mov qword [rbx + 0x3258], r15
test rax, rax
je 0x14003cfcc
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3260], r15
mov rcx, qword [rbx + 0x3250]
test rcx, rcx
je 0x14003d017
mov rax, qword [0x140166040]
mov qword [rbx + 0x3248], r15
test rax, rax
je 0x14003d004
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3250], r15
cmp qword [rbx + 0x3298], r15
je 0x14003d047
mov rdi, qword [rbx + 0x3298]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14003d040
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3298], r15
mov rcx, qword [rbx + 0x32a8]
test rcx, rcx
je 0x14003d07f
mov rax, qword [0x140166040]
mov qword [rbx + 0x32a0], r15
test rax, rax
je 0x14003d06c
dec dword [rax + 0x3b0]
mov rdx, qword [0x140166048]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x32a8], r15
mov byte [rbx], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret