Function at 0x18005ed7a
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x40]
mov qword [rsp], rax
mov rax, 0x2cc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x18005ed69
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x228], rsi
mov qword [rbp + 0x220], rbx
mov qword [rbp + 0x2a0], rcx
mov qword [rbp + 0x2a8], rdx
mov qword [rbp + 0x2b0], r8
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x280], rax
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov dword [rbp + 0x74], 0
mov dword [rbp + 0x78], 0x50
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0x7c], 0
mov rax, qword [rbp + 0x2a0]
lea rdx, [0x1801051f2]
mov ecx, 7
mov qword [rbp + 0x1a8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1a8]
mov r8, rax
call sub.ntdll.dll__strnicmp
mov dword [rbp + 0x80], eax
mov eax, dword [rbp + 0x80]
test eax, eax
jne 0x18005ee42
mov eax, 7
add rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x7c], 0
mov rax, qword [rbp + 0x2a0]
lea rdx, [0x1801051fa]
mov ecx, 8
mov qword [rbp + 0x1b0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1b0]
mov r8, rax
call sub.ntdll.dll__strnicmp
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
test eax, eax
jne 0x18005ee9f
mov eax, 8
add rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x7c], 1
mov dword [rbp + 0x78], 0x1bb
mov rax, qword [rbp + 0x2a0]
mov edx, 0x2f
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
test rax, rax
je 0x18005eef8
mov rax, qword [rbp + 0x2a0]
mov edx, 0x2f
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0x2a0]
neg rax
add rax, qword [rbp + 0xf0]
cmp rax, 0x40
jb 0x18005ef44
mov eax, 0
mov dword [rbp + 0xcc], eax
lea rax, reloc.WS2_32.dll_htonl
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x280]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0xcc]
mov rbx, qword [rbp + 0x220]
mov rsi, qword [rbp + 0x228]
lea rsp, [rbp + 0x290]
pop rbp
ret
mov rax, qword [rbp + 0x2a0]
mov edx, 0x2f
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0x238]
mov edx, 0
mov ecx, 0x40
mov qword [rbp + 0x1b8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1b8]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0x238]
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a0]
neg rcx
add rcx, qword [rbp + 0xe0]
mov qword [rbp + 0x1c0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c0]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x238]
mov edx, 0x3a
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x18005f06e
lea rax, [rbp + 0x238]
mov edx, 0x3a
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0x118], rax
mov eax, 1
add rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.180066ce0
mov dword [rbp + 0x8c], eax
mov eax, dword [rbp + 0x8c]
mov dword [rbp + 0x78], eax
mov byte [rbp + 0x70], 0
lea rax, [rbp + 0x238]
mov edx, 0x3a
mov rcx, rax
call fcn.1800016d4
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x120]
movsx edx, byte [rbp + 0x70]
mov byte [rax], dl
mov dword [rbp + 8], 0xfffff
mov eax, 0
mov edx, 0x49
lea rcx, [rbp + 8]
mov ebx, 4
mov rsi, qword [sym.imp.WININET.dll_InternetSetOptionA]
mov qword [rbp + 0x1c8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c8]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x88], eax
mov eax, 0
mov edx, 0x4a
lea rcx, [rbp + 8]
mov ebx, 4
mov rsi, qword [sym.imp.WININET.dll_InternetSetOptionA]
mov qword [rbp + 0x1d0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d0]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x90], eax
lea rax, [0x180105160]
mov edx, 0
mov ecx, 0
mov ebx, 0
mov dword [rsp + 0x20], 0
mov rsi, qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 0x1d8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d8]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
test rax, rax
je 0x18005f681
mov rax, qword [rbp + 0x130]
lea rdx, [rbp + 0x238]
mov ecx, dword [rbp + 0x78]
mov ebx, 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.WININET.dll_InternetConnectA]
mov dword [rbp + 0x1e0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1e0]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x18005f668
mov dword [rbp + 0x98], 0
mov eax, dword [rbp + 0x7c]
test eax, eax
je 0x18005f1e2
mov dword [rbp + 0x98], 0x84c0f200
jmp 0x18005f1ec
mov dword [rbp + 0x98], 0x8440f200
mov rax, qword [rbp + 0x140]
mov edx, 0
mov rcx, qword [rbp + 0xe0]
mov ebx, 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov esi, dword [rbp + 0x98]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rbp + 0x1e8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e8]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
test rax, rax
je 0x18005f64f
mov dword [rbp + 0x20], 4
mov rax, qword [rbp + 0x150]
mov edx, 0x1f
lea rcx, [rbp + 0x14]
lea rbx, [rbp + 0x20]
mov rsi, qword [sym.imp.WININET.dll_InternetQueryOptionA]
mov qword [rbp + 0x1f0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1f0]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xa0], eax
or dword [rbp + 0x14], 0x380
mov rax, qword [rbp + 0x150]
mov edx, 0x1f
lea rcx, [rbp + 0x14]
mov ebx, 4
mov rsi, qword [sym.imp.WININET.dll_InternetSetOptionA]
mov qword [rbp + 0x1f8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1f8]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0xa8], eax
mov rax, qword [rbp + 0x150]
mov edx, 0
mov ecx, 0
mov ebx, 0
mov dword [rsp + 0x20], 0
mov rsi, qword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [rbp + 0x200], ecx
mov rcx, rax
mov eax, dword [rbp + 0x200]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0xac], eax
mov eax, dword [rbp + 0xac]
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
cmp eax, 1
jne 0x18005f636
mov dword [rbp + 0x44], 4
mov rax, qword [rbp + 0x150]
mov edx, 0x20000013
lea rcx, [rbp + 0x2c]
lea rbx, [rbp + 0x44]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov qword [rbp + 0x208], rcx
mov rcx, rax
mov rax, qword [rbp + 0x208]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0xb4]
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
cmp eax, 1
jne 0x18005f636
mov eax, dword [rbp + 0x2c]
cmp eax, 0xc8
jb 0x18005f636
mov eax, dword [rbp + 0x2c]
cmp eax, 0x12c
jae 0x18005f636
mov dword [rbp + 0x44], 4
mov rax, qword [rbp + 0x150]
mov edx, 0x20000005
lea rcx, [rbp + 0x38]
lea rbx, [rbp + 0x44]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov qword [rbp + 0x210], rcx
mov rcx, rax
mov rax, qword [rbp + 0x210]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0xbc]
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
test eax, eax
jne 0x18005f462
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0xc0], eax
mov eax, dword [rbp + 0xc0]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
cmp eax, 0x2f76
jne 0x18005f462
mov dword [rbp + 0xb0], 1
mov dword [rbp + 0x38], 0xa00000
mov eax, dword [rbp + 0xb0]
cmp eax, 1
jne 0x18005f636
lea rax, [rbp + 0x50]
mov edx, 1
add edx, dword [rbp + 0x38]
mov rcx, rax
call fcn.18003edc4
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x160]
mov edx, 0
movsxd rdx, edx
imul rdx, rdx, 8
add rdx, qword [rax]
mov rax, qword [rdx]
mov rdx, qword [rbp + 0x160]
mov rcx, rdx
call rax
jmp 0x18005f4dd
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x170]
test rax, rax
jne 0x18005f4e6
jmp 0x18005f62a
mov qword [rbp + 0x168], rax
jmp 0x18005f4be
lea rax, [rbp + 0x50]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov edx, 0
movsxd rdx, edx
imul rdx, rdx, 8
add rdx, qword [rax]
mov rax, qword [rdx]
mov rdx, qword [rbp + 0x178]
mov rcx, rdx
call rax
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x190], rax
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
test eax, eax
je 0x18005f5d0
mov rax, qword [rbp + 0x150]
mov rdx, qword [rbp + 0x190]
mov ecx, dword [rbp + 0xc4]
lea rbx, [rbp + 0x44]
mov rsi, qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rbp + 0x218], ecx
mov rcx, rax
mov eax, dword [rbp + 0x218]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0xc8], eax
mov eax, dword [rbp + 0xc8]
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
test eax, eax
je 0x18005f5d0
mov eax, dword [rbp + 0x44]
test eax, eax
je 0x18005f5d0
mov eax, dword [rbp + 0x44]
add rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], rax
mov eax, dword [rbp + 0x44]
neg eax
add eax, dword [rbp + 0xc4]
mov dword [rbp + 0xc4], eax
jmp 0x18005f542
mov eax, dword [rbp + 0xc4]
neg eax
add eax, dword [rbp + 0x38]
je 0x18005f62a
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.18003f204
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x2a8]
mov rdx, qword [rbp + 0x1a0]
mov qword [rax], rdx
mov eax, dword [rbp + 0xc4]
neg eax
add eax, dword [rbp + 0x38]
mov rdx, qword [rbp + 0x2b0]
mov dword [rdx], eax
mov dword [rbp + 0x74], 1
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.18003ee98
mov rax, qword [rbp + 0x150]
mov rdx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0x140]
mov rdx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x130]
mov rdx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x94], eax
mov eax, dword [rbp + 0x94]
mov dword [rbp + 0xd0], eax
lea rax, reloc.WS2_32.dll_htonl
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x280]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0xd0]
mov rbx, qword [rbp + 0x220]
mov rsi, qword [rbp + 0x228]
lea rsp, [rbp + 0x290]
pop rbp
ret