Function at 0x14002e70c
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
cmp dword [rdx + 0xe4], 4
mov esi, dword [rcx + 0x90]
mov r14b, r9b
mov r13b, r8b
mov r12, rdx
mov rbx, rcx
jne 0x14002e744
bts esi, 0x17
mov eax, dword [rdx + 0xe0]
mov r10, qword [rdx + 0x60]
and qword [rsp + 0x38], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
and dword [rsp + 0x30], 0
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x14002e7af
mov dword [rbx + 0x20], reloc.WSOCK32.dll_inet_ntoa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002e9a3
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14002e9a3
and qword [rsp + 0x38], 0
mov r8, qword [r12 + 0xc0]
mov dword [rsp + 0x30], esi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rdi, rax
test rax, rax
jne 0x14002e7ec
mov dword [rbx + 0x20], recvfrom
jmp 0x14002e78b
test r13b, r13b
je 0x14002e858
mov ecx, dword [r12 + 0xe0]
lea rax, [rbx + 0x108]
lea r8, [rbx + 0xa0]
cmp ecx, 1
lea r12, [rbx + 0xc0]
cmove r8, rax
lea rax, [rbx + 0x128]
cmove r12, rax
mov rax, qword [r8 + 8]
test rax, rax
je 0x14002e858
mov r8, qword [r8]
lea r9d, [rax + 1]
mov edx, 0x2b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, dword [r12 + 8]
mov r8, qword [r12]
inc r9d
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
bt esi, 0xc
jae 0x14002e895
mov esi, SafeArrayAllocDescriptor
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
mov rcx, rdi
mov edx, esi
mov dword [rbp + 0x38], 4
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rbp + 0x30], 8
lea r9d, [rsi - 0x1b]
lea r8, [rbp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14002e978
and dword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x30]
mov edx, 0x20000013
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [rbp - 0x30]
cmp ecx, 0xc8
jne 0x14002e978
and dword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x28]
mov edx, 5
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], SafeArrayDestroyDescriptor
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x28]
call fcn.1400700a8
mov qword [rbx + 0x18], rax
test r14b, r14b
je 0x14002e955
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x14002e941
call fcn.14002ee68
jmp 0x14002e946
call fcn.14002ed0c
mov rcx, rdi
mov bl, al
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
jmp 0x14002e9a5
and dword [rbx + 0x20], 0
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002e96b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x14002e9a5
mov dword [rbx + 0x20], reloc.WSOCK32.dll_listen
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002e99a
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret