Function at 0x140023c70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fc0]
mov eax, 0x30c0
call fcn.140156570
sub rsp, rax
mov r12, qword [rbp + 0x3020]
xor esi, esi
mov rbx, r9
mov r15, r8
mov r13, rcx
test r12, r12
je 0x140023cb5
mov dword [r12], esi
test rbx, rbx
je 0x140023cbd
mov qword [r9], rsi
call fcn.140063b80
mov r14, rax
test rax, rax
jne 0x140023ce6
mov r9, r13
lea r8, str.Failed_to_open_zip_file___s__n
lea edx, [rax + 1]
mov ecx, 0x7f0
call fcn.140001480
jmp 0x140023e15
mov rcx, r14
call fcn.1400eef30
test eax, eax
je 0x140023d10
mov r9, r13
lea r8, str.Failed_to_open_Current_file_of_the_zipfile___s__n
mov edx, 1
mov ecx, 0x7f1
call fcn.140001480
jmp 0x140023e15
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.1400eed2c
test eax, eax
je 0x140023d3f
mov r9, r13
lea r8, str.Failed_to_get_global_Info_of_the_zipfile___s__n
mov edx, 1
mov ecx, 0x7f1
call fcn.140001480
jmp 0x140023e15
mov rcx, r14
call fcn.1400eee10
test eax, eax
je 0x140023d71
mov rcx, r14
call fcn.1400eeaf8
mov r9, r13
lea r8, str.Failed_to_set_the_current_file_to_the_first_file_of_the_zipfile___s__n
mov edx, 1
mov ecx, 0x7f1
call fcn.140001480
jmp 0x140023e15
mov qword [rsp + 0x3100], rdi
mov edi, esi
mov dword [rbp + 0x3020], esi
cmp dword [rsp + 0x48], esi
jbe 0x140023e00
mov ebx, 0x800
nop dword [rax]
mov dword [rsp + 0x38], esi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], esi
mov r9d, ebx
mov rcx, r14
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x40], rsi
call fcn.1400eeb98
test eax, eax
jne 0x140024171
lea rcx, [rbp - 0x40]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140023dd0
test rax, rax
jne 0x140023e28
mov r8, r13
lea rdx, str.Failed_to_unzip_an_empty_filename_as_part_of_zip_file___s__n
lea ecx, [rax + 1]
call fcn.140002870
mov rcx, r14
call fcn.1400eee28
test eax, eax
je 0x1400240ff
mov rcx, r14
call fcn.1400eeaf8
mov eax, 1
mov rdi, qword [rsp + 0x3100]
add rsp, 0x30c0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x40]
test word [rsp + 0x64], bx
je 0x140023e49
mov r9d, 0x199
lea r8, str.C:_gitlab_runner_builds_dRaSG2wX_0_visualization_vis_src_vissrc_adapters_src_dapi_libdfu_dfuzip.c
xor edx, edx
call fcn.14001f8f0
jmp 0x140023e4e
call fcn.140002810
mov edx, 0x2f
mov rcx, rax
mov rbx, rax
call fcn.14001eaf0
mov rsi, rax
test rax, rax
je 0x140023ecb
mov r9d, gethostbyname
mov byte [rax], 0
mov r8, rbx
lea rdx, str._s_c
lea rcx, [rbp + 0x27c0]
call fcn.140002a20
mov rcx, qword [rbp + 0x3008]
lea rdx, [rbp + 0x27c0]
xor r8d, r8d
call fcn.140012aa0
mov rcx, rax
mov rdi, rax
call fcn.140013bc0
test eax, eax
jne 0x140023eb4
xor edx, edx
mov rcx, rdi
call fcn.140012520
test rdi, rdi
je 0x140023ec2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [rbp + 0x3020]
mov byte [rsi], 0x2f
mov rcx, qword [rbp + 0x3008]
xor r8d, r8d
mov rdx, rbx
call fcn.140012aa0
mov rsi, rax
test r15, r15
je 0x140023f39
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140023ef0
cmp rcx, 2
jbe 0x140023f39
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140013a90
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140023f8b
mov rcx, r15
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140023f8b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140023f39
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.14000bfa0
test al, al
jne 0x140023fe0
mov r8, rbx
lea rdx, str.Unsupported_extension_found__skipping_file_from_unzip____s__n
mov ecx, 1
call fcn.140002870
mov r8, rbx
lea rdx, str._MSG___WARNING:_Unsupported_extension_found__skipping_file_from_unzip____s__n
lea rcx, [rbp + 0x7c0]
call fcn.140002a20
lea rdx, [rbp + 0x7c0]
mov ecx, eax
call fcn.140010080
test rbx, rbx
je 0x140023fcb
mov rcx, rbx
jmp 0x140023fc5
mov r8, rbx
lea rdx, str.skipping_file_from_unzip__as_extension_is_not_present_in_extensionsList_provided_for_unzip____s__n
mov ecx, 1
call fcn.140002870
test rbx, rbx
je 0x140023fad
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x140023fbb
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140023fcb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call fcn.1400eee28
test eax, eax
jne 0x140023e00
jmp 0x1400240f8
test rbx, rbx
je 0x140023fee
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x14017f914]
mov rcx, rsi
call fcn.14001ccc0
mov rdi, rax
test rax, rax
je 0x140024138
movzx ecx, byte [0x1401ba7d8]
xor edx, edx
mov byte [rbp + 0x7c0], cl
mov r8d, 0x1fff
lea rcx, [rbp + 0x7c1]
call sub.VCRUNTIME140.dll_memset
mov rcx, r14
call fcn.1400eef30
mov r8d, 0x2000
lea rdx, [rbp + 0x7c0]
mov rcx, r14
call fcn.1400ef0c4
movsxd rbx, eax
test eax, eax
je 0x14002408d
nop
mov r9, rdi
lea rcx, [rbp + 0x7c0]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140024116
mov r8d, 0x2000
lea rdx, [rbp + 0x7c0]
mov rcx, r14
call fcn.1400ef0c4
movsxd rbx, eax
test eax, eax
jne 0x140024050
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call fcn.1400eeb4c
mov rbx, qword [rbp + 0x3018]
test rbx, rbx
je 0x1400240d4
test r12, r12
je 0x1400240d4
movsxd rdx, dword [r12]
mov rcx, qword [rbx]
lea rdx, [rdx*8 + 8]
call fcn.140002700
mov qword [rbx], rax
movsxd rcx, dword [r12]
mov qword [rax + rcx*8], rsi
inc dword [r12]
jmp 0x1400240e2
test rsi, rsi
je 0x1400240e2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call fcn.1400eee28
test eax, eax
jne 0x140023e00
mov edi, dword [rbp + 0x3020]
xor esi, esi
mov ebx, 0x800
inc edi
mov dword [rbp + 0x3020], edi
cmp edi, dword [rsp + 0x48]
jb 0x140023d90
jmp 0x140023e00
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call fcn.1400eeb4c
mov rcx, r14
call fcn.1400eeaf8
lea r8, str.Failed_to_write_the_current_file___s__n
jmp 0x140024147
mov rcx, r14
call fcn.1400eeaf8
lea r8, str.Failed_to_create_the_current_file___s__n
mov r9, rsi
mov edx, 1
mov ecx, 0x7f1
call fcn.140001480
test rsi, rsi
je 0x140024167
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
jmp 0x140023e0d
mov rcx, r14
call fcn.1400eeaf8
mov r9, r13
lea r8, str.Failed_to_get_the_current_file_info_of_the_zipfile___s__n
mov edx, 1
mov ecx, 0x7f1
call fcn.140001480
jmp 0x140023e0d