Function at 0x14006fcd0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rcx + 0x178]
lea rcx, [rbp - 0x30]
call fcn.140004480
nop
lea r14, [rbx + 0x1b8]
mov ecx, 0x198
mov r8d, 0x1b8
cmp dword [rbx + 0x4bc], 5
cmovne r8d, ecx
add r8, rbx
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14006fd40
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140003670
lea rdx, [rbx + 0x178]
lea rcx, [rbp - 0x70]
call fcn.140004480
nop
cmp qword [rdi + 0x10], 0
cmove rdi, r14
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14006fd74
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140003670
lea rdi, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdi, qword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400702bf
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006fdb4
cmp byte [0x1400ed7fd], al
jne 0x14006fdc0
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
mov r8, rdi
lea rdx, str.File_does_not_exist_at__s
mov rax, qword [rax + 8]
call qword [case.0x140049d6d.0]
xor esi, esi
mov qword [rbp - 0x10], rsi
movdqa xmm0, xmmword [0x1400d6750]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], sil
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x10]
call fcn.14007cb40
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.1400711f0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rsi
mov word [rbp - 0x78], 1
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x58]
mov qword [rsp + 0x50], rax
test rax, rax
sete byte [rsp + 0x58]
mov byte [rsp + 0x59], sil
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x50], xmm1
lea rax, [rsp + 0x60]
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140023250
test al, al
jne 0x14006ff77
nop dword [rax]
mov rbx, qword [rsp + 0x50]
cmp byte [rsp + 0x58], 0
jne 0x14006fede
test rbx, rbx
je 0x14006fed6
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006febb
mov rax, qword [rbx + 0x50]
cmp dword [rax], 0
jle 0x14006febb
movzx eax, byte [rcx]
jmp 0x14006fecb
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x140049d6d.0]
cmp eax, 0xffffffff
je 0x14006fed6
mov byte [rsp + 0x59], al
jmp 0x14006fee3
mov rbx, rsi
mov qword [rsp + 0x50], rbx
movzx eax, byte [rsp + 0x59]
mov byte [rsp + 0x40], al
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rsp + 0x70]
je 0x14006fefc
mov byte [rdx], al
inc qword [rsp + 0x68]
jmp 0x14006ff0b
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400722d0
test rbx, rbx
je 0x14006ff57
mov rax, qword [rbx + 0x38]
cmp qword [rax], 0
je 0x14006ff3b
mov rcx, qword [rbx + 0x50]
mov eax, dword [rcx]
test eax, eax
jle 0x14006ff3b
dec eax
mov dword [rcx], eax
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x14006ff4b
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x140049d6d.0]
cmp eax, 0xffffffff
je 0x14006ff57
mov byte [rsp + 0x58], 0
jmp 0x14006ff61
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 1
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.140023250
test al, al
je 0x14006fe90
mov qword [rbp - 0x50], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
cmp rdx, r8
jne 0x14006ffa5
movdqa xmm0, xmmword [0x1400d6750]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
jmp 0x14006ffb2
sub r8, rdx
lea rcx, [rbp - 0x50]
call fcn.140013000
nop
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.1400420d0
movzx ebx, al
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14006fffd
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006fff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400703c2
call fcn.140079b70
movdqa xmm0, xmmword [0x1400d6750]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rcx, qword [0x1400ed828]
test bl, bl
je 0x14007004c
test rcx, rcx
je 0x140070027
cmp byte [0x1400ed7fd], 0
jne 0x140070033
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea rdx, str.successfully_unzipped_the_gzip_response
mov rax, qword [rax + 0x28]
call qword [case.0x140049d6d.0]
mov r15b, 1
jmp 0x140070084
test rcx, rcx
je 0x14007005a
cmp byte [0x1400ed7fd], 0
jne 0x140070066
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.Failed_in_Unzipping_the_gzipped_http_response
lea rdx, [0x1400c3148]
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
xor r15b, r15b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400700ce
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400700bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400703c8
call fcn.140079b70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x20]
call fcn.140071080
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0xc], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xc0], rax
lea rcx, [rbp + 0xc0]
call fcn.14007849c
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x80]
call fcn.1400610c0
test r15b, r15b
je 0x140070271
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400701f5
mov r14, qword [0x1400ed828]
test r14, r14
je 0x1400701ae
cmp byte [0x1400ed7fd], 0
jne 0x1400701ba
call fcn.14005c3a0
mov r14, qword [0x1400ed828]
lea rdi, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdi, qword [rbp - 0x70]
mov rbx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str.Failed_to_create_file_at_path_:_s_Error:_d
lea rdx, [0x1400c3148]
mov rcx, r14
mov rax, qword [rbx + 0x48]
call qword [case.0x140049d6d.0]
jmp 0x140070271
mov dword [rbp - 0x80], esi
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x80]
mov r8d, dword [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140070267
mov rdi, qword [0x1400ed828]
test rdi, rdi
je 0x140070234
cmp byte [0x1400ed7fd], al
jne 0x140070240
call fcn.14005c3a0
mov rdi, qword [0x1400ed828]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_write_in_file_ERROR_VAL:_d_n
lea rdx, [0x1400c3148]
mov rcx, rdi
mov rax, qword [rbx + 0x48]
call qword [case.0x140049d6d.0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400702ac
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400702a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400703ce
call fcn.140079b70
movdqa xmm0, xmmword [0x1400d6750]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
jmp 0x140070305
mov dword [rbx + 0x4c0], 0xffffff9c
lea rcx, [rbx + 0x4c8]
lea rdx, str.Failed_to_unzip_the_file_as_there_is_already_another_file_with_that_name_present
call fcn.140002cb0
xor esi, esi
mov dword [rbx + 0x4f0], esi
mov byte [rbx + 0x4ec], 1
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x80]
call fcn.1400610c0
xor r15b, r15b
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140070345
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140070340
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400703d4
call fcn.140079b70
movdqa xmm0, xmmword [0x1400d6740]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140070392
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007038d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400703bc
call fcn.140079b70
movzx eax, r15b
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140079b50
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140080d34
nop
call fcn.140080d34
nop
call fcn.140080d34
nop
call fcn.140080d34
nop
call fcn.140080d34
int3