Function at 0x40acb1
Capabilities:
Read http header
Receive http response
Set http header

Disassembly:
push 0x204
mov eax, 0x47ad75
call fcn.00478470
mov edi, ecx
call fcn.0040b0cb
test al, al
jne 0x40acd2
xor al, al
jmp 0x40b0c5
lea ebx, [edi + 0x68]
cmp dword [ebx], 2
jne 0x40ad25
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0xa4]
push 4
push eax
push 0x2d
push dword [edi + 0x14]
mov dword [ebp - 0xa4], edi
call esi
push 0
push 0x10000
push 0x40a70e
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 4
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0xa8
push eax
push 0x54
push dword [edi + 0x14]
call esi
mov eax, dword [edi + 0x28]
mov esi, str.Http::makeRequest
cmp eax, dword [edi + 0x2c]
je 0x40aed3
push 0x48090c
lea ecx, [ebp - 0x28]
call fcn.004019d1
and dword [ebp - 4], 0
mov esi, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
cmp esi, eax
je 0x40ae2a
mov byte [ebp - 0xac], 0
mov ebx, eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040a3f3
push 0x481284
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00402ae9
add esp, 0xc
mov ecx, eax
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.00403f67
push dword [ebp - 0xac]
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
push eax
call fcn.004039fa
push 0x4814f4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00402ac2
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x40adde
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403f67
lea ecx, [ebp - 0x88]
call fcn.00401ef9
lea ecx, [ebp - 0x40]
call fcn.00401ef9
lea ecx, [ebp - 0xa0]
call fcn.00401ef9
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401ef9
lea ecx, [ebp - 0x70]
call fcn.00401ef9
add esi, 0x30
cmp esi, ebx
jne 0x40ad5e
lea ebx, [edi + 0x68]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x21000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40aec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00403264
push dword [edi + 0x60]
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 5
push str.WinHttpAddRequestHeaders_failed__last_error_:
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x160]
mov esi, str.Http::makeRequest
push eax
push esi
push 0x91
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push 0
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0xf8]
call fcn.004033bd
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x40aec7
mov esi, str.Http::makeRequest
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401ef9
mov eax, dword [edi + 0x20]
xor ecx, ecx
sub eax, dword [edi + 0x1c]
push ecx
push eax
push eax
push dword [edi + 0x1c]
push ecx
push ecx
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40af83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00403264
push ebx
push str.__url:
push dword [edi + 0x60]
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 6
push str.WinHttpSendRequest_error:
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040ea23
pop ecx
pop ecx
lea eax, [ebp - 0x160]
push eax
push esi
push 0x98
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push 0
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0xf8]
call fcn.004033bd
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x40accb
push 0
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40aff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00403264
push ebx
push str.__url:
push dword [edi + 0x60]
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 7
push str.WinHttpReceiveResponse_error:
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040ea23
pop ecx
pop ecx
lea eax, [ebp - 0x160]
push eax
push esi
push 0x9f
jmp 0x40af54
xor ecx, ecx
mov dword [ebp - 0xb0], 4
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], ecx
push eax
lea eax, [ebp - 0xa8]
push eax
push ecx
push 0x20000013
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40b0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x210]
mov dword [edi + 0x60], eax
call fcn.00403264
push ebx
push str.__url:
push dword [edi + 0x60]
lea eax, [ebp - 0x200]
mov dword [ebp - 4], 8
push str.WinHttpQueryHeaders_error:
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040ea23
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push esi
push 0xaa
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push 0
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0x1a8]
call fcn.004033bd
lea ecx, [ebp - 0x1a8]
jmp 0x40af78
mov cx, word [ebp - 0xa8]
mov al, 1
mov word [edi + 0x18], cx
call fcn.0047842b
ret