Function at 0x18009020c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27c0]
mov eax, 0x28c0
call fcn.18009f1d0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x28f0], rbx
mov qword [rsp + 0x2900], rsi
mov qword [rsp + 0x2908], rdi
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov ebx, r13d
mov r15b, r13b
movdqa xmm0, xmmword [0x180283730]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], r13b
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded_r_n]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [0x1802814d8]
movups xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [0x1802814e8]
movups xmmword [rbp - 0x58], xmm0
movzx eax, word [0x1802814f8]
mov word [rbp - 0x48], ax
mov r12d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.testPost
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x180090478
lea rdx, [0x1802c1068]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [0x1802c1068]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
movzx r8d, word [0x1802a6c58]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, rax
test rax, rax
je 0x18009046f
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x80000000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, str.HTTP_1.1
lea r8, str._t_api_terminal_v1_boot
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
je 0x18009046f
mov r13, qword [rsi + 0x10]
mov r15, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180090362
mov r15, qword [rsi]
lea rcx, [rbp - 0x78]
call fcn.1801c86a0
mov r8, rax
mov dword [rsp + 0x20], r13d
mov r9, r15
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
xor r13d, r13d
test eax, eax
setne r15b
xor edx, edx
mov r8d, 0x2800
lea rcx, [rbp - 0x40]
call fcn.1801c27d0
mov dword [rbp + 0x27f8], r13d
jmp 0x18009043c
mov eax, dword [rbp + 0x27f8]
test eax, eax
je 0x18009046f
mov byte [rbp + rax - 0x40], gethostbyname
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], r13b
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.18005a838
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.18005dedc
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18009043c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180090437
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009050e
call fcn.18009e42c
mov r8d, 0x2800
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1801c27d0
lea r9, [rbp + 0x27f8]
mov r8d, 0x2800
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800903a9
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rdi, rdi
je 0x180090486
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x180090494
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r15b, r15b
jne 0x1800904b1
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r12
cmp r12, 3
jb 0x18009029c
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800904ea
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800904e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180090514
call fcn.18009e42c
mov al, r15b
lea r11, [rsp + 0x28c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1801c897c
nop
call fcn.1801c897c
int3