Function at 0x18001bfc0
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 - 0x168]
sub rsp, 0x268
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [rsp + 0x78], r9
mov dword [rsp + 0x50], r8d
mov r13, rdx
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x40], ebx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_310]
nop
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], ebx
je 0x18001c05a
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
mov edi, 1
mov dword [rsp + 0x40], edi
lea rdx, str.http
mov rcx, rax
call qword [sym.imp.mfc100.dll_Ordinal_2524]
test eax, eax
jne 0x18001c05a
xor sil, sil
jmp 0x18001c05d
mov sil, 1
test dil, 1
je 0x18001c06e
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
test sil, sil
je 0x18001c085
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_889]
xor eax, eax
jmp 0x18001c5d6
lea rcx, [rsp + 0x58]
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 + 0x48]
cmp dword [rax - 0x10], 0
je 0x18001c16c
xor r8d, r8d
lea rdx, [0x18004813c]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_3991]
lea r8d, [rax + 3]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc100.dll_Ordinal_7575]
nop
xor r8d, r8d
lea rdx, reloc.ca_core.dll_Ordinal_47
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_3991]
mov edi, eax
cmp eax, 0xffffffff
je 0x18001c150
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_7190]
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
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 + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
jmp 0x18001c161
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov r8d, 5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
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, ebx
test eax, eax
sete dil
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea rsi, [0x180041f02]
mov r8, rsi
xor edx, edx
lea rcx, str.agent909
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x18001c1f8
lea rcx, [rsp + 0x68]
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]
xor eax, eax
jmp 0x18001c5d6
mov eax, edi
neg eax
sbb r8w, r8w
and r8w, 0x1bb
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r15, rax
test rax, rax
jne 0x18001c269
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
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]
xor eax, eax
jmp 0x18001c5d6
mov eax, 0x84000000
mov ecx, 0x84803000
test edi, edi
cmovne eax, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, str.HTTP_1.1
mov r8, qword [rsp + 0x68]
lea rdx, str.POST
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r12, rax
test rax, rax
jne 0x18001c2ec
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
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]
xor eax, eax
jmp 0x18001c5d6
mov rax, qword [str.Content_Type:application_x_www_form_urlencoded]
mov qword [rbp - 0x78], rax
mov rax, qword [0x180048200]
mov qword [rbp - 0x70], rax
mov rax, qword [0x180048208]
mov qword [rbp - 0x68], rax
mov rax, qword [0x180048210]
mov qword [rbp - 0x60], rax
mov rax, qword [0x180048218]
mov qword [rbp - 0x58], rax
mov eax, dword [0x180048220]
mov dword [rbp - 0x50], eax
movzx eax, word [0x180048224]
mov word [rbp - 0x4c], ax
movzx eax, byte [0x180048226]
mov byte [rbp - 0x4a], al
mov r9d, 0xa0000000
or r8d, 0xffffffff
lea rdx, [rbp - 0x78]
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov r8, qword [rsp + 0x58]
lea rdx, str.Host:__s
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCR100.dll_sprintf]
mov r9d, 0xa0000000
or r8d, 0xffffffff
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edi, dword [rsp + 0x50]
mov dword [rsp + 0x20], edi
mov r9, r13
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x18001c408
mov dword [rsp + 0x50], 4
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea edx, [rax + 0x1f]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [rsp + 0x40], 0x3380
mov r9d, 4
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x1b]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [rsp + 0x20], edi
mov r9, r13
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x18001c408
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Post_request_failed.__d
jmp 0x18001c464
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x51]
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x50], 0x100
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x50]
mov edx, reloc.zlibwapi.dll_Ordinal_19
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18001c4b7
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xc8
jl 0x18001c45d
cmp eax, 0xce
jle 0x18001c4b7
lea rdx, str.Post_request_failed.__nStatusCode__d_
mov r8d, eax
mov ecx, 2
call fcn.180035240
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
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]
xor eax, eax
jmp 0x18001c5d6
mov dword [rsp + 0x70], reloc.ca_core.dll_Ordinal_16
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x48]
mov edx, 5
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18001c4ed
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCR100.dll_atol]
mov esi, eax
jmp 0x18001c4f2
mov esi, 0xa00000
mov edi, 0x1000
mov ecx, edi
cmp esi, edi
cmova ecx, esi
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r13, rax
cmp esi, edi
cmovb edi, esi
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r11d, eax
test eax, eax
je 0x18001c56a
nop word [rax + rax]
mov ecx, dword [rsp + 0x40]
add ebx, ecx
lea eax, [rbx + 0x1000]
cmp eax, esi
jbe 0x18001c544
mov edi, esi
sub edi, ebx
test r11d, r11d
je 0x18001c54d
test ecx, ecx
je 0x18001c56a
mov edx, ebx
add rdx, r13
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r11d, eax
test eax, eax
jne 0x18001c530
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18001c589
mov eax, 0x100000
cmp ebx, eax
cmovb eax, ebx
mov r8d, eax
mov rdx, r13
call sub.MSVCR100.dll_memcpy
mov rcx, r13
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x68]
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 eax, 1
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret