Function at 0x18002ac18
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r12d, r9d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800339a8]
add eax, eax
xor edx, edx
lea r8d, [rax + 1]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
cmp rax, rdi
mov rsi, rax
je 0x18002aca0
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov rcx, qword [0x1800339a8]
xor edx, edx
cmp eax, edi
je 0x18002ac97
mov r8, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 8], rsi
jmp 0x18002aca0
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
cmp rax, rdi
mov qword [rbx + 0x20], rax
je 0x18002ae77
lea rdx, [0x18002ab98]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
or rbp, 0xffffffffffffffff
cmp rax, rbp
je 0x18002ae77
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x38], rbx
mov eax, esi
neg eax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
sbb r8w, r8w
xor r9d, r9d
mov qword [rsp + 0x20], rdi
and r8w, 0x16b
add r8w, 0x50
call qword [sym.imp.WININET.dll_InternetConnectA]
cmp rax, rdi
mov qword [rbx + 0x28], rax
jne 0x18002ad81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18002ae77
mov rax, qword [rbx + 0x38]
lea rdx, [rsp + 0x48]
lea ecx, [rbp + 3]
mov qword [rsp + 0x48], rax
mov rax, qword [0x180033bb0]
mov r9d, 0xea60
xor r8d, r8d
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
cmove eax, ebp
cmp eax, edi
jne 0x18002ae77
mov rax, qword [0x180033bd0]
mov qword [rsp + 0x38], rbx
neg esi
sbb r8d, r8d
lea rdx, [0x180000000]
and r8d, 0x7ff180
lea rcx, [rax + rdx + 0x36572]
lea rdx, [rax + rdx + 0x36588]
add r8d, 0x84404000
cmp r12d, edi
mov dword [rsp + 0x30], r8d
cmovne rdx, rcx
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x80], r8d
mov r8, qword [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp rax, rdi
mov qword [rbx + 0x30], rax
je 0x18002ae77
mov esi, 4
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
lea ebp, [rsi + 0x1b]
mov rcx, rax
mov dword [rsp + 0x40], esi
mov edx, ebp
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
cmp eax, edi
je 0x18002ae3b
mov rcx, qword [rbx + 0x30]
bts dword [rsp + 0x80], 8
lea r8, [rsp + 0x80]
mov r9d, esi
mov edx, ebp
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x90]
mov r9d, esi
mov edx, 6
call qword [sym.imp.WININET.dll_InternetSetOptionA]
cmp eax, edi
je 0x18002ae77
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x90]
mov r9d, esi
mov edx, 5
call qword [sym.imp.WININET.dll_InternetSetOptionA]
cmp eax, edi
jne 0x18002ae7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret