Function at 0x392ea5860
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x508
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4b0], rcx
mov qword [rbp + 0x4b8], rdx
mov qword [rbp + 0x4c0], r8
mov qword [rbp + 0x4c8], r9
mov dword [rbp + 0x450], 4
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x7e
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x4b0]
mov rcx, rax
call fcn.392f2f240
mov rax, qword [rbp + 0x4c8]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x478], rax
mov rdx, qword [rbp + 0x4b8]
mov rax, qword [rbp + 0x478]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetConnectA]
call rax
mov qword [rbp + 0x470], rax
mov rcx, qword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x4d0]
mov rax, qword [rbp + 0x470]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x400000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpOpenRequestA]
call rax
mov qword [rbp + 0x468], rax
mov rax, qword [rbp + 0x468]
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpSendRequestA]
call rax
lea rcx, [rbp + 0x450]
lea rdx, [rbp + 0x454]
mov rax, qword [rbp + 0x468]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 0x20000013
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpQueryInfoA]
call rax
mov eax, dword [rbp + 0x454]
cmp eax, 0x191
je 0x392ea5a68
cmp eax, 0x197
jne 0x392ea5ab5
mov rax, qword [rbp + 0x468]
mov r9d, 0
mov r8d, 0
mov edx, 0x2b
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
mov rax, qword [rbp + 0x468]
mov r9d, 0
mov r8d, 0
mov edx, 0x2c
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
jmp 0x392ea59a2
mov rax, qword [rbp + 0x468]
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
mov rax, qword [rbp + 0x468]
mov r9d, 0
mov r8d, 0
mov edx, 0x1d
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
jmp 0x392ea59a2
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x468]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.392f42080
mov rsi, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.392f423a0
mov rbx, rax
mov rax, qword [rbp + 0x4b0]
mov rcx, rax
call fcn.392f2f050
mov qword [rbp + 0x460], rax
lea rdx, [rbp + 0x460]
lea rax, [rbp + 0x458]
mov rcx, rax
call fcn.392ea9290
mov rdx, qword [rbp + 0x458]
mov rax, qword [rbp + 0x4b0]
mov r9, rsi
mov r8, rbx
mov rcx, rax
call fcn.392f2f0b0
mov eax, dword [rbp - 0x34]
cmp eax, 0x400
je 0x392ea5ab5
mov rax, qword [rbp + 0x468]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x470]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x478]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
mov rax, qword [rbp + 0x4b0]
add rsp, 0x508
pop rbx
pop rsi
pop rdi
pop rbp
ret