Function at 0x14005e300
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400f0080]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
cmp byte [rcx], 0
je 0x14005e339
mov eax, 1
jmp 0x14005e5ed
lea r12, vtable.MyCallback.0
mov qword [rbp - 0x20], r12
xor r14d, r14d
mov qword [rbp - 0x30], r14
lea r8, [rcx + 0x10]
lea rdx, [0x1400dcb98]
lea rcx, [rbp - 0x30]
call fcn.14005e620
nop
mov qword [rbp - 0x28], r14
lea rsi, [rbx + 0x20]
lea rdx, [rbx + 0x18]
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.14005e7c0
nop
mov rdx, qword [rsi]
lea rcx, str.Next_version_will_be__s_n
call fcn.14005ccd0
mov rax, qword [rsi]
cmp word [rax], r14w
jne 0x14005e3d9
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e3b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005e3d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
xor eax, eax
jmp 0x14005e5e9
mov rdx, qword [rbp - 0x28]
lea rcx, str.Looking_for_updates_at__s_n
call fcn.14005ccd0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov r15d, eax
mov rbx, 0xffffffffffffffff
test eax, eax
js 0x14005e595
lea rdx, str.TESTS
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14004e900
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x14004eae0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rbp - 0x30]
cmp dword [rdx - 8], 1
jle 0x14005e46b
mov edx, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14005ed10
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x18]
call fcn.14005d7e0
test eax, eax
je 0x14005e53e
lea rax, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov rdx, qword [rsi]
cmp dword [rdx - 8], 1
jle 0x14005e498
mov edx, dword [rdx - 0x10]
mov rcx, rsi
call fcn.14005ed10
mov rdi, qword [rsi]
call fcn.1400487a0
mov rcx, rax
test rax, rax
je 0x14005e612
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp - 0x40], rax
test rdi, rdi
je 0x14005e4ed
cmp rdi, 0x10000
jae 0x14005e4d6
movzx edx, di
lea rcx, [rbp - 0x40]
call fcn.14005ee30
jmp 0x14005e4fd
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14005e4e0
jmp 0x14005e4f0
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14005f110
nop
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x40]
call fcn.14005dd60
test eax, eax
jne 0x14005e53e
lea rcx, str.Version_string_doesnt_match_actual_version_n
call fcn.14005ccd0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e539
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x14005e3b6
mov r8d, r15d
mov rdx, qword [rsi]
lea rcx, str.Downloaded_file__s_which_is_a_newer_version._Result___u_n
call fcn.14005ccd0
mov rcx, qword [rbp - 0x30]
cmp dword [rcx - 8], 1
jle 0x14005e56a
mov edx, dword [rcx - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14005ed10
mov rcx, qword [rbp - 0x30]
call fcn.14005ce00
mov rdx, qword [rbp - 0x30]
test eax, eax
je 0x14005e58c
lea rcx, str.Successfully_started_the_temp_version___s__n
call fcn.14005ccd0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
lea rcx, str.Couldnt_start_the_temp_version___s__n
jmp 0x14005e59f
mov rdx, qword [rsi]
lea rcx, str.No_new_version___s__on_the_server_n
call fcn.14005ccd0
test r15d, r15d
setne r14b
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005e5c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005e5e6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
mov eax, r14d
mov qword [rbp - 0x20], r12
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400be180
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140048670
int3