Function at 0x140003790
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1180
call fcn.140020560
sub rsp, rax
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x1178], rax
mov r13, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov esi, 1
mov edx, esi
lea rcx, str.AutoUpdater
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x140003a33
lea rdx, [0x14002c0c8]
cmp qword [0x14002c0e0], 0x10
cmovae rdx, qword [0x14002c0c8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
jne 0x14000383a
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140003a33
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x158], rbx
mov qword [rsp + 0x160], 0xf
mov byte [rsp + 0x148], 0
lea r9, [rsp + 0x120]
mov r8d, 0x1000
lea rdx, [rsp + 0x170]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000393f
nop word [rax + rax]
mov eax, dword [rsp + 0x120]
test eax, eax
je 0x14000393d
mov edi, eax
mov rcx, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400038f9
lea rax, [rcx + rdi]
mov qword [rsp + 0x158], rax
lea rbx, [rsp + 0x148]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x148]
add rbx, rcx
mov r8d, edi
lea rdx, [rsp + 0x170]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140003916
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x170]
mov rdx, rdi
lea rcx, [rsp + 0x148]
call fcn.140007220
lea r9, [rsp + 0x120]
mov r8d, 0x1000
lea rdx, [rsp + 0x170]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140003890
xor ebx, ebx
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.1400062c0
nop
mov qword [rsp + 0x98], rbx
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x138]
call fcn.140006c70
movzx edx, byte [rsp + 0x128]
movzx r14d, byte [rax]
mov byte [rsp + 0x128], r14b
mov byte [rax], dl
lea rcx, [rax + 8]
mov rax, qword [rsp + 0x130]
mov rdi, qword [rcx]
mov qword [rsp + 0x130], rdi
mov qword [rcx], rax
call fcn.140005d40
nop
cmp r14d, 9
ja case.0x1400039c3.3
lea rdx, [0x140000000]
mov ecx, dword [rdx + r14*4 + 0x3d54]
add rcx, rdx
jmp rcx
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jmp 0x1400039d3
cmp qword [rdi + 8], 0
sete al
test al, al
je case.0x1400039c3.3
movzx edx, r14b
lea rcx, [rsp + 0x130]
call fcn.140005d40
nop
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140003a33
inc rdx
mov rcx, qword [rsp + 0x148]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003cfa
call fcn.14001f9c4
xor al, al
mov rcx, qword [rsp + 0x1178]
xor rcx, rsp
call fcn.14001f710
lea r11, [rsp + 0x1180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp r14b, 2
jne 0x140003c33
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
mov rax, rbx
sub rax, rdx
sar rax, 4
test rax, rax
jne 0x140003ac9
mov rcx, rbx
sub rcx, rdx
sar rcx, 4
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 4
cmp rax, 1
jae 0x140003aa7
mov rcx, rdi
call fcn.14000be70
jmp 0x140003ac9
sub rsi, rcx
je 0x140003ac5
nop dword [rax]
xor edx, edx
mov rcx, rbx
call fcn.1400062c0
nop
add rbx, 0x10
sub rsi, 1
jne 0x140003ab0
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea rcx, [rsp + 0x138]
call fcn.140004e10
nop
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
lea r8d, [rdi + 6]
lea rdx, str.commit
lea rcx, [rsp + 0x30]
call fcn.140002b00
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x138]
test al, al
jne 0x140003b31
mov byte [rsp + 0x138], 1
call fcn.1400078c0
mov qword [rsp + 0x140], rax
jmp 0x140003b41
cmp al, 1
jne 0x140003d01
mov rax, qword [rsp + 0x140]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.140010710
mov rbx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140003b9e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f9c4
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
lea rdx, str.author
lea rcx, [rbx + 0x40]
call fcn.140006b50
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140004e10
nop
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.140004e10
movzx edx, byte [r13]
movzx ecx, byte [rax]
mov byte [r13], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [r13 + 8]
mov r8, qword [rcx]
mov qword [r13 + 8], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.140005d40
nop
movzx edx, byte [rsp + 0x110]
lea rcx, [rsp + 0x118]
call fcn.140005d40
nop
mov dl, 1
lea rcx, [rsp + 0x140]
call fcn.140005d40
nop
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
movzx edx, r14b
lea rcx, [rsp + 0x130]
call fcn.140005d40
nop
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140003c97
inc rdx
mov rcx, qword [rsp + 0x148]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003cfa
call fcn.14001f9c4
mov al, 1
jmp 0x140003a35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x138]
call fcn.140006230
mov qword [rsp + 0x110], rax
lea r8, [rsp + 0x110]
lea rcx, [rsp + 0x60]
call fcn.14000edf0
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0xa0]
call fcn.140006ea0
lea rdx, [0x140028f80]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3