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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r13, r9
mov qword [rbp - 0x80], r8
mov qword [rbp - 0x70], rdx
mov rsi, rcx
mov rax, qword [rbp + 0x1b0]
mov qword [rbp - 0x78], rax
xor r12d, r12d
mov r14d, r12d
mov dword [rsp + 0x58], r12d
lea rdx, str.1.00
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_310]
mov rdi, rax
lea rdx, reloc.ca_core.dll_Ordinal_44
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100.dll_Ordinal_310]
mov rbx, rax
lea rdx, str.CA_Helper
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc100.dll_Ordinal_310]
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180007150
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180007150
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_310]
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], r12d
je 0x18001b9ca
lea r8d, [r12 + 4]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
mov r14d, 1
mov dword [rsp + 0x58], r14d
lea rdx, str.http
mov rcx, rax
call qword [sym.imp.mfc100.dll_Ordinal_2524]
test eax, eax
jne 0x18001b9ca
xor bl, bl
jmp 0x18001b9cc
mov bl, 1
test r14b, 1
je 0x18001b9dd
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
test bl, bl
je 0x18001b9ff
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
je 0x18001bae6
xor r8d, r8d
lea rdx, [0x18004813c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_3991]
lea r8d, [rax + 3]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_7575]
nop
xor r8d, r8d
lea rdx, reloc.ca_core.dll_Ordinal_47
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_3991]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18001baca
mov r8d, eax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov r8d, ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_7575]
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
jmp 0x18001badb
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov r8d, 5
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
lea rdx, str.https
mov rcx, rax
call qword [sym.imp.mfc100.dll_Ordinal_2530]
mov edi, r12d
test eax, eax
sete dil
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea rbx, [0x180041f02]
mov r8, rbx
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x18001bb7e
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
mov eax, edi
neg eax
sbb r8w, r8w
and r8w, 0x1bb
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov rdx, qword [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18001bc01
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
mov eax, 0x84000000
mov ecx, 0x84803000
test edi, edi
cmovne eax, ecx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, str.HTTP_1.0
mov r8, qword [rsp + 0x68]
lea rdx, [0x1800481a4]
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
jne 0x18001bc90
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
mov r8, qword [rsp + 0x50]
lea rdx, str.Host:__s
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCR100.dll_sprintf]
mov r9d, 0xa0000000
or r8d, 0xffffffff
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x18001bd69
mov dword [rsp + 0x78], 4
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x58]
lea edx, [rax + 0x1f]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [rsp + 0x58], 0x3380
mov r9d, 4
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x1b]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x18001bd69
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
mov byte [rbp + 0x30], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x31]
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x78], 0x100
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x30]
mov edx, reloc.zlibwapi.dll_Ordinal_19
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18001be1f
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xc8
jl 0x18001bdbe
cmp eax, 0xce
jle 0x18001be1f
mov edx, eax
lea rcx, str.web_return_error:__d_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001bf72
mov dword [rsp + 0x60], reloc.ca_core.dll_Ordinal_16
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x60]
mov edx, 5
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18001be55
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCR100.dll_atol]
mov esi, eax
jmp 0x18001be5a
mov esi, 0x10000
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x18001be65
mov dword [rax], esi
test r13, r13
je 0x18001be6e
mov dword [r13], r12d
lea ecx, [rsi + 1]
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r14, rax
mov ebx, 0x1000
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18001bee4
nop word [rax + rax]
mov edx, dword [rsp + 0x58]
add r12d, edx
lea ecx, [r12 + 0x1000]
cmp ecx, esi
jbe 0x18001beb8
mov ebx, esi
sub ebx, r12d
test r13, r13
je 0x18001bec1
add dword [r13], edx
test eax, eax
je 0x18001bec9
test edx, edx
je 0x18001bee4
mov edx, r12d
add rdx, r14
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18001bea0
mov rcx, qword [rbp - 0x78]
mov rdx, r14
test rcx, rcx
jne 0x18001bf00
mov r8d, r12d
mov rcx, qword [rbp - 0x70]
call fcn.18001b740
mov ebx, eax
jmp 0x18001bf1a
mov eax, dword [rbp + 0x1b8]
cmp r12d, eax
cmovb eax, r12d
mov r8d, eax
call sub.MSVCR100.dll_memcpy
mov ebx, 1
mov rcx, r14
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret