Function at 0x140017f38
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x18], 0xfffffffffffffffe
movzx ebx, r9w
mov r15, r8
mov r12, rdx
mov r13, rcx
xor esi, esi
mov dword [rbp + 0x48], esi
mov dword [rsp + 0x20], esi
lea r9, [0x140050478]
lea r8, [0x140050478]
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, rax
mov qword [r13 + 0x65aa8], rax
test rax, rax
jne 0x140018060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r13 + 0x65ac0], eax
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
lea rsi, [0x140060bf0]
or ebx, 0xffffffff
cmp rcx, rsi
je 0x140017fe3
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140017fe3
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rcx, qword [r15]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018008
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018008
mov rcx, qword [r15]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018031
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018031
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018059
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018059
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140027ee0
xor eax, eax
jmp 0x140018428
mov r14, qword [rbp + 0x70]
mov rax, qword [r14]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x4400000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
mov rdi, qword [rbp + 0x68]
mov r9, qword [rdi]
movzx r8d, bx
mov rdx, qword [r12]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [r13 + 0x65ab0], rax
test rax, rax
jne 0x140018164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r13 + 0x65ac0], eax
mov rcx, qword [r13 + 0x65aa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [r12]
or ebx, 0xffffffff
lea rsi, [0x140060bf0]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400180f2
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400180f2
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rcx, qword [r15]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018117
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018117
mov rcx, qword [r15]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rcx, qword [rdi]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001813c
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001813c
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rcx, qword [r14]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018059
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018059
mov rcx, qword [r14]
jmp 0x140018050
movzx eax, bx
mov dword [r13 + 0x65ad0], eax
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x140018199
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r13 + 0x65ac0], eax
mov rcx, qword [r13 + 0x65ab0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400180b3
lea rcx, [r13 + 0x63aa0]
mov r8, qword [r12]
mov ebx, 0x400
mov edx, ebx
call fcn.140029a94
lea rcx, [r13 + 0x642a0]
mov r8, qword [r15]
mov edx, ebx
call fcn.140029a94
mov rbx, qword [rdi]
test rbx, rbx
je 0x14001820e
cmp dword [rbx - 0xc], esi
jl 0x1400181d8
mov qword [rbp - 0x38], rbx
lock inc dword [rbx - 0xc]
jmp 0x140018203
mov rax, qword [0x140060c00]
mov qword [rbp - 0x38], rax
test rbx, rbx
jne 0x1400181ec
mov eax, esi
jmp 0x1400181f5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.14000d398
lea rax, [rbp - 0x38]
mov edi, 1
jmp 0x140018223
lea rdx, [0x140050478]
lea rcx, [rbp - 0x28]
call fcn.14001738c
mov edi, 2
mov dword [rbp + 0x48], edi
lea rcx, [r13 + 0x64aa0]
mov r8, qword [rax]
mov edx, 0x400
call fcn.140029a94
or ebx, 0xffffffff
lea rsi, [0x140060bf0]
test dil, 2
je 0x140018279
and edi, 0xfffffffd
mov dword [rbp + 0x48], edi
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018279
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018276
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff4
call fcn.140027ee0
mov edi, dword [rbp + 0x48]
test dil, 1
je 0x1400182a6
and edi, 0xfffffffe
mov dword [rbp + 0x48], edi
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400182a6
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400182a3
call fcn.140027ee0
mov edi, dword [rbp + 0x48]
mov r14, qword [r14]
test r14, r14
je 0x1400182f7
cmp dword [r14 - 0xc], 0
jl 0x1400182c3
mov qword [rbp - 0x30], r14
lock inc dword [r14 - 0xc]
mov edi, dword [rbp + 0x48]
jmp 0x1400182ee
mov rax, qword [0x140060c00]
mov qword [rbp - 0x30], rax
test r14, r14
jne 0x1400182d7
xor eax, eax
jmp 0x1400182e0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r14
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.14000d398
lea rax, [rbp - 0x30]
or edi, 4
jmp 0x14001830a
lea rdx, [0x140050478]
lea rcx, [rbp - 0x20]
call fcn.14001738c
or edi, 8
mov dword [rbp + 0x48], edi
lea rcx, [r13 + 0x652a0]
mov r8, qword [rax]
mov edx, 0x400
call fcn.140029a94
test dil, 8
je 0x140018356
and edi, 0xfffffff7
mov dword [rbp + 0x48], edi
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x140018356
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x140018353
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call fcn.140027ee0
mov edi, dword [rbp + 0x48]
test dil, 4
je 0x14001837a
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x14001837a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x14001837a
call fcn.140027ee0
movzx eax, word [rbp + 0x60]
mov word [r13 + 0x65aa0], ax
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400183ad
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400183ad
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rcx, qword [r15]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400183d2
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400183d2
mov rcx, qword [r15]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rdx]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x1400183fb
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1400183fb
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140027ee0
nop
mov rdx, qword [rbp + 0x70]
mov rax, qword [rdx]
add rax, 0xfffffffffffffff4
cmp rax, rsi
je 0x140018423
mov ecx, ebx
lock xadd dword [rax], ecx
add ecx, ebx
test ecx, ecx
jg 0x140018423
mov rcx, qword [rdx]
sub rcx, 0xc
call fcn.140027ee0
mov eax, 1
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret