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

Disassembly:
push 0x204
mov eax, 0x4d957a
call fcn.004d631c
mov edi, ecx
call fcn.0040e09a
test al, al
jne 0x40dca1
xor al, al
jmp 0x40e094
lea ebx, [edi + 0x68]
cmp dword [ebx], 2
jne 0x40dcf4
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 0x40d3b5
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 0x40dea2
push 0x4ebbc4
lea ecx, [ebp - 0x28]
call fcn.00401a11
and dword [ebp - 4], 0
mov esi, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
cmp esi, eax
je 0x40ddf9
mov byte [ebp - 0xac], 0
mov ebx, eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040d07b
push 0x4ecb30
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00403164
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.00402e22
push dword [ebp - 0xac]
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
push eax
call fcn.00402bfb
push 0x4ecda4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004029e1
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x40ddad
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402e22
lea ecx, [ebp - 0x88]
call fcn.00401f5a
lea ecx, [ebp - 0x40]
call fcn.00401f5a
lea ecx, [ebp - 0xa0]
call fcn.00401f5a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401f5a
lea ecx, [ebp - 0x70]
call fcn.00401f5a
add esi, 0x30
cmp esi, ebx
jne 0x40dd2d
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 0x40de91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.004038fa
push dword [edi + 0x60]
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 5
push str.WinHttpAddRequestHeaders_failed__last_error_:
push eax
call fcn.00402f9e
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.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0xf8]
call fcn.00403ad6
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 0x40de96
mov esi, str.Http::makeRequest
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f5a
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 0x40df52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.004038fa
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.00402f9e
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.00402f9e
pop ecx
pop ecx
push eax
call fcn.0041bb2e
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.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0xf8]
call fcn.00403ad6
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 0x40dc9a
push 0
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40dfc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.004038fa
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.00402f9e
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.00402f9e
pop ecx
pop ecx
push eax
call fcn.0041bb2e
pop ecx
pop ecx
lea eax, [ebp - 0x160]
push eax
push esi
push 0x9f
jmp 0x40df23
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 0x40e087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x210]
mov dword [edi + 0x60], eax
call fcn.004038fa
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.00402f9e
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.00402f9e
pop ecx
pop ecx
push eax
call fcn.0041bb2e
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.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0x1a8]
call fcn.00403ad6
lea ecx, [ebp - 0x1a8]
jmp 0x40df47
mov cx, word [ebp - 0xa8]
mov al, 1
mov word [edi + 0x18], cx
call fcn.004d62c6
ret