Function at 0x4018b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
mov rcx, qword [rbp + 0x20]
call fcn.004082a0
lea rax, [rbp - 0x90]
mov rcx, rax
call fcn.00409250
mov dword [rbp - 0x94], 0
mov dword [rbp - 0x98], 0
mov qword [rbp - 0xa0], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpOpen
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x28], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpConnect
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x30], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpOpenRequest
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x38], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpSendRequest
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x40], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpReceiveResponse
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x48], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpQueryDataAvailable
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x50], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpReadData
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x58], rax
lea rcx, str.winhttp.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.WinHttpCloseHandle
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rbp - 0x28]
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.A_WinHTTP_Example_Program_1.0
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x401aab
mov eax, dword [rbp + 0x30]
movzx r8d, ax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9d, 0
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x401aee
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp - 0x10]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rbp - 0x38]
mov r9d, 0
mov r8, rdx
lea rdx, [0x0040c21c]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x401b2c
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rax, qword [rbp - 0x40]
mov r9d, 0
mov r8d, 0
mov edx, 0
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401b44
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x48]
mov edx, 0
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401cb7
mov dword [rbp - 0x94], 0
lea rax, [rbp - 0x94]
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x50]
mov rdx, rax
call r8
test eax, eax
sete al
test al, al
je 0x401b8d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call sym.printf_char_const__::_
mov eax, dword [rbp - 0x94]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0xa0], rax
mov rax, qword [rbp - 0xa0]
test rax, rax
jne 0x401bce
lea rcx, str.Out_of_memory_n
call sym.printf_char_const__::_
mov dword [rbp - 0x94], 0
jmp 0x401ca8
mov eax, dword [rbp - 0x94]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0xa0]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov r10d, dword [rbp - 0x94]
mov rdx, qword [rbp - 0xa0]
lea r8, [rbp - 0x98]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x58]
mov r9, r8
mov r8d, r10d
call rax
test eax, eax
sete al
test al, al
je 0x401c37
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call sym.printf_char_const__::_
jmp 0x401c8d
mov rax, qword [rbp - 0xa0]
mov edx, dword [rbp - 0x98]
mov edx, edx
lea rsi, [rax + rdx]
mov rbx, qword [rbp - 0xa0]
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.end__
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x68]
lea rax, [rbp - 0x70]
mov rcx, rax
call sym._ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC1IPhEERKNS0_IT_NS_11__enable_ifIXsrSt10__are_sameIS9_S8_E7__valueES5_E6
mov rdx, qword [rbp - 0x70]
lea rax, [rbp - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char______std::vector_unsigned_char__std::allocator_unsigned_char___.insert_char__void____gnu_cxx::__normal_iterator_unsigned_char_const__std::vector_
mov rax, qword [rbp - 0xa0]
test rax, rax
je 0x401ca8
mov rax, qword [rbp - 0xa0]
mov rcx, rax
call sym.operator_delete___void_
mov eax, dword [rbp - 0x94]
test eax, eax
je 0x401cb7
jmp 0x401b4e
cmp dword [rbp - 4], 0
jne 0x401cd4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call sym.printf_char_const__::_
cmp qword [rbp - 0x18], 0
je 0x401ce8
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x60]
mov rcx, rdx
call rax
cmp qword [rbp - 0x10], 0
je 0x401cfc
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x60]
mov rcx, rdx
call rax
cmp qword [rbp - 0x20], 0
je 0x401d10
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x60]
mov rcx, rdx
call rax
mov rcx, qword [rbp + 0x20]
lea rax, [rbp - 0x90]
mov rdx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator_std::vector_unsigned_char__std::allocator_unsigned_char____const_
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov rdx, rax
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x18], rdx
nop
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
jmp 0x401d75
mov rax, qword [rbp + 0x20]
add rsp, 0xe0
pop rbx
pop rsi
pop rbp
ret