Function at 0x140040430
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x270]
sub rsp, 0x370
xor r14d, r14d
mov dword [rbp + 0x290], r14d
lea rcx, str.TEMP
call fcn.1400bed34
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140040480
mov rdx, rax
lea rcx, [rbp]
call fcn.140018dd0
nop
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rcx, qword [rbp + 0x10]
sub rax, rcx
cmp rax, 0x16
jb 0x140040c0f
lea r9, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae r9, qword [rbp]
mov qword [rsp + 0x30], SafeArrayPutElement
lea rax, str._newestversiondownload
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x40]
call fcn.140071e10
mov esi, 1
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call fcn.1400bc8ac
test eax, eax
lea rdx, str.Error_deleting_file
jne 0x14004050f
lea rdx, str.File_successfully_deleted
call fcn.14006c3c0
mov rcx, rax
call fcn.14006c6a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], SafeArrayGetLBound
mov ecx, 0x40
call fcn.1400a5fd0
mov rdx, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], 0x33
mov qword [rbp - 0x48], 0x3f
movups xmm0, xmmword [str.https:__Alokas66.com_launcher_newestversiondownload]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400fc678]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400fc688]
movups xmmword [rax + 0x20], xmm0
movzx eax, word [0x1400fc698]
mov word [rdx + 0x30], ax
movzx eax, byte [0x1400fc69a]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], 0
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r8, qword [rbp - 0x40]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x140040662
mov rax, rdi
mov rcx, qword [rbp - 0x50]
sub rax, rcx
cmp rax, 0x13
jb 0x140040c15
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetLBound
lea r9, str.failed_to_download
lea rcx, [rsp + 0x40]
call fcn.140071e10
mov esi, 0x41
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [0x14011ae90]
call fcn.1400754f0
mov rcx, rax
call fcn.14006c6a0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140040662
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004065d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c1b
call fcn.1400a632c
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x60]
call fcn.14005f440
nop
lea rcx, [rbp + 0x170]
call fcn.1400624a0
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x180]
call fcn.1400627d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov rcx, r14
mov qword [rbp - 0x70], rcx
mov r10d, SafeArrayGetLBound
mov qword [rbp - 0x68], r10
mov byte [rbp - 0x80], cl
or esi, 4
mov dword [rbp + 0x290], esi
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov rdx, qword [rbp + 0x1f8]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x1400406fa
mov rax, qword [rbp + 0x1c8]
mov r8, qword [rax]
test r8, r8
je 0x1400406fa
mov rax, qword [rbp + 0x1a8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x1f0]
cmovb r8, qword [rbp + 0x1f0]
sub r8, rdx
jmp 0x140040734
test dl, 4
jne 0x14004072a
mov rax, qword [rbp + 0x1c0]
mov r9, qword [rax]
test r9, r9
je 0x14004072a
mov rax, qword [rbp + 0x1a0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x1d8]
movsxd r8, dword [rax]
add r8, r9
sub r8, rdx
jmp 0x140040734
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14004074a
lea rcx, [rbp - 0x80]
call fcn.140018950
mov r10, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
mov rax, rdi
sub rax, rcx
cmp rax, 0x1e
jb 0x140040c21
lea rax, [rbp - 0x80]
cmp r10, 0x10
cmovae rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1e
lea r9, str.https:__Alokas66.com_launcher_
lea rcx, [rbp + 0x40]
call fcn.140071e10
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400407b0
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.140018dd0
nop
mov rax, rdi
mov rcx, qword [0x140119020]
sub rax, rcx
cmp rax, 1
jb 0x140040c27
lea r9, [0x140119010]
cmp qword [0x140119028], 0x10
cmovae r9, qword [0x140119010]
mov qword [rsp + 0x30], 1
lea rax, [0x1400fc6c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x20]
call fcn.140071e10
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp + 0x20]
call fcn.140068930
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x14004089c
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040897
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c2d
call fcn.1400a632c
movdqa xmm0, xmmword [0x1400ffd90]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], 0
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae r8, qword [rbp - 0x20]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x140040995
mov rcx, qword [rsp + 0x70]
sub rdi, rcx
cmp rdi, 0x13
jb 0x140040c33
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetLBound
lea r9, str.failed_to_download
lea rcx, [rsp + 0x40]
call fcn.140071e10
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [0x14011ae90]
call fcn.1400754f0
mov rcx, rax
call fcn.14006c6a0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140040995
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004098f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c39
call fcn.1400a632c
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1400409d0
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400409cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c3f
call fcn.1400a632c
movdqa xmm0, xmmword [0x1400ffd90]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140040a1e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040a19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c45
call fcn.1400a632c
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], SafeArrayGetLBound
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140040a6d
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040a67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c4b
call fcn.1400a632c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140040aa9
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040aa3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c51
call fcn.1400a632c
nop
lea rcx, [rbp + 0x170]
call fcn.14003cf60
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.14005f390
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.1400867fc
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140040b5e
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040b59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c57
call fcn.1400a632c
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], SafeArrayGetLBound
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140040ba9
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ba4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c5d
call fcn.1400a632c
movdqa xmm0, xmmword [0x1400ffd90]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140040bf1
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040bec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c09
call fcn.1400a632c
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400bb588
nop
call fcn.140006f20
nop
call fcn.140006f20
int3
call fcn.1400bb588
nop
call fcn.140006f20
nop
call fcn.140006f20
nop
call fcn.1400bb588
int3
call fcn.140006f20
int3
call fcn.1400bb588
nop
call fcn.1400bb588
nop
call fcn.1400bb588
nop
call fcn.1400bb588
nop
call fcn.1400bb588
nop
call fcn.1400bb588
nop
call fcn.1400bb588
int3