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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x5b0
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.HTTP_Example
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18005948c
cmp qword [rdi + 0x18], 0x10
jb 0x1800591dd
mov rdi, qword [rdi]
mov r8d, 0x50
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800594ae
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x80000000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, str._post
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800594d6
xorps xmm0, xmm0
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x188], r12
mov qword [rsp + 0x188], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x190], 0x3f
mov qword [rsp + 0x68], 0x16
mov edx, 0x40
lea rcx, [rsp + 0x170]
call fcn.180007230
mov rcx, rax
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x180], 0x31
mov qword [rsp + 0x188], 0x3f
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded_r_n]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18016b5f8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x18016b608]
movups xmmword [rax + 0x20], xmm0
movzx eax, byte [0x18016b618]
mov byte [rcx + 0x30], al
mov byte [rcx + 0x31], 0
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 0x10
cmovae rdx, qword [rsp + 0x170]
mov r9d, 0x80000000
mov r8d, dword [rsp + 0x180]
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x1800594ff
mov eax, dword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x18005934a
mov r15, qword [r15]
mov dword [rsp + 0x20], eax
mov r9, r15
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x180059527
mov dword [rsp + 0x160], r12d
mov dword [rsp + 0x168], 4
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x168]
lea r8, [rsp + 0x160]
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18005954f
mov edx, dword [rsp + 0x160]
lea eax, [rdx - 0xc8]
cmp eax, 0x63
ja 0x180059577
mov dword [rsp + 0x164], r12d
nop dword [rax]
nop word [rax + rax]
lea r9, [rsp + 0x164]
mov r8d, 0x400
lea rdx, [rsp + 0x1a0]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180059413
mov eax, dword [rsp + 0x164]
test eax, eax
je 0x180059413
mov r8d, eax
lea rdx, [rsp + 0x1a0]
mov rcx, rbx
call fcn.18002b890
jmp 0x1800593d0
lea rcx, [rsp + 0x170]
call fcn.180007560
nop
jmp 0x18005943c
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r14, r14
je 0x180059453
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x180059461
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1800f23a0
mov rbx, qword [rsp + 0x5f8]
add rsp, 0x5b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Failed_to_open_Internet_session
lea rcx, [rsp + 0x78]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0x78]
call fcn.1800f5928
lea rdx, str.Failed_to_connect_to_server
lea rcx, [rsp + 0x90]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0x90]
call fcn.1800f5928
lea rdx, str.Failed_to_create_HTTP_request
lea rcx, [rsp + 0xa8]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0xa8]
call fcn.1800f5928
nop
lea rdx, str.Failed_to_set_request_headers
lea rcx, [rsp + 0xc0]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0xc0]
call fcn.1800f5928
lea rdx, str.Failed_to_send_HTTP_request
lea rcx, [rsp + 0xd8]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0xd8]
call fcn.1800f5928
lea rdx, str.Failed_to_get_HTTP_response_status_code
lea rcx, [rsp + 0xf0]
call fcn.18005f290
lea rdx, [0x180185d30]
lea rcx, [rsp + 0xf0]
call fcn.1800f5928
lea rcx, [rsp + 0x120]
call fcn.18004acd0
nop
mov r8, rax
lea rdx, str.HTTP_request_failed_with_status_code
lea rcx, [rsp + 0x140]
call fcn.18005cc90
nop
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.18002ab30
lea rdx, [0x180185d30]
lea rcx, [rsp + 0x108]
call fcn.1800f5928
int3