Function at 0x18000b590
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
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x578], rbx
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, r8
mov r15, rdx
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov qword [rbp - 0x80], rdx
xor r12d, r12d
mov dword [rsp + 0x60], r12d
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r12
mov byte [rbp - 0x38], r12b
mov edi, r12d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x10]
call fcn.180071390
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x4c], r12d
or r14d, 0xffffffff
mov esi, r12d
mov dword [rsp + 0x44], 4
mov dword [rsp + 0x48], 0x3a98
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x48], r12
mov byte [rbp - 0x58], sil
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r12
mov byte [rbp - 0x78], r12b
mov eax, 0x50
mov word [rsp + 0x40], ax
mov dword [r13], r14d
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r12
mov byte [rbp - 0x18], r12b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.180007c70
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x18]
call fcn.18000b0d0
test al, al
jne 0x18000b803
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r12
cmp qword [rbx + 0x18], 0x10
jb 0x18000b6b3
mov rax, qword [rbx]
jmp 0x18000b6b6
mov rax, rbx
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x1800d70c5]
mov rcx, rbx
call fcn.1800051c0
nop
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x18000b722
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x18000b71d
test cl, 0x1f
je 0x18000b6f0
call fcn.180072ffc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000b6ff
call fcn.180072ffc
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000b70e
call fcn.180072ffc
int3
cmp rcx, 0x27
jbe 0x18000b71a
call fcn.180072ffc
int3
mov rcx, rax
call fcn.18006baac
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r12
mov byte [rbp - 0x78], 0
mov rax, qword [rbp - 0x40]
cmp rax, 0x10
jb 0x18000b788
inc rax
mov rcx, qword [rbp - 0x58]
cmp rax, 0x1000
jb 0x18000b783
test cl, 0x1f
je 0x18000b756
call fcn.180072ffc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000b765
call fcn.180072ffc
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000b774
call fcn.180072ffc
int3
cmp rcx, 0x27
jbe 0x18000b780
call fcn.180072ffc
int3
mov rcx, rax
call fcn.18006baac
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x48], r12
mov byte [rbp - 0x58], 0
mov rax, qword [rbp - 0x20]
cmp rax, 0x10
jb 0x18000b7ee
inc rax
mov rcx, qword [rbp - 0x38]
cmp rax, 0x1000
jb 0x18000b7e9
test cl, 0x1f
je 0x18000b7bc
call fcn.180072ffc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000b7cb
call fcn.180072ffc
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000b7da
call fcn.180072ffc
int3
cmp rcx, 0x27
jbe 0x18000b7e6
call fcn.180072ffc
int3
mov rcx, rax
call fcn.18006baac
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r12
mov byte [rbp - 0x38], 0
jmp 0x18000bb20
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:14.0__Gecko_20100101_Firefox_14.0.1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 - 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 4]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 3]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test r12, r12
je 0x18000ba79
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
xor r9d, r9d
movzx r8d, word [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r15, rax
test rax, rax
je 0x18000ba4f
lea rax, str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov qword [rsp + 0x70], rcx
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r8, qword [rbp - 0x78]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x80000000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, str.HTTP_1.0
lea rdx, [0x1800d93ec]
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x18000ba4f
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, str._r_n_r_n
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x18000ba4f
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8, r13
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000ba4f
cmp dword [r13], 0xc8
jne 0x18000ba4f
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000b9b9
mov r14d, dword [rsp + 0x50]
mov edx, r14d
lea rcx, [rbp - 0x38]
call fcn.18000c8f0
xor r13d, r13d
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000ba4f
nop dword [rax]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000ba4f
add esi, eax
mov r8d, eax
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r13
mov byte [rbp - 0x18], 0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.1800051c0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.180007ef0
nop
lea rcx, [rbp - 0x18]
call fcn.1800052f0
cmp esi, r14d
jae 0x18000ba4f
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000b9e0
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r15, r15
je 0x18000ba66
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rdi, rdi
je 0x18000ba74
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r15, qword [rsp + 0x58]
xor edi, edi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x18000ba93
mov rax, qword [rbx]
jmp 0x18000ba96
mov rax, rbx
mov byte [rax], dil
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.180008020
nop
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x18000bafc
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x18000baf7
test cl, 0x1f
je 0x18000baca
call fcn.180072ffc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000bad9
call fcn.180072ffc
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000bae8
call fcn.180072ffc
int3
cmp rcx, 0x27
jbe 0x18000baf4
call fcn.180072ffc
int3
mov rcx, rax
call fcn.18006baac
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], rdi
mov byte [rbp - 0x78], 0
lea rcx, [rbp - 0x58]
call fcn.1800052f0
nop
lea rcx, [rbp - 0x38]
call fcn.1800052f0
nop
mov rcx, r15
call fcn.1800052f0
mov rax, rbx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.18006c2f0
mov rbx, qword [rsp + 0x578]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret