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

Disassembly:
push 0x204
mov eax, 0x539df8
call fcn.0053655e
mov edi, ecx
call fcn.00410c13
test al, al
jne 0x41081a
xor al, al
jmp 0x410c0d
lea ebx, [edi + 0x68]
cmp dword [ebx], 2
jne 0x41086d
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 0x40fddb
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 0x410a1b
push 0x559fc4
lea ecx, [ebp - 0x28]
call fcn.00401cd4
and dword [ebp - 4], 0
mov esi, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
cmp esi, eax
je 0x410972
mov byte [ebp - 0xac], 0
mov ebx, eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040fa61
push 0x55b098
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00404630
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.00403bb9
push dword [ebp - 0xac]
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
push eax
call fcn.00403889
push 0x55b30c
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004030d5
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x410926
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403bb9
lea ecx, [ebp - 0x88]
call fcn.0040257a
lea ecx, [ebp - 0x40]
call fcn.0040257a
lea ecx, [ebp - 0xa0]
call fcn.0040257a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040257a
lea ecx, [ebp - 0x70]
call fcn.0040257a
add esi, 0x30
cmp esi, ebx
jne 0x4108a6
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 0x410a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 5
push str.WinHttpAddRequestHeaders_failed__last_error_:
push eax
call fcn.0040446a
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.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xf8]
call fcn.00404fea
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 0x410a0f
mov esi, str.Http::makeRequest
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040257a
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 0x410acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00404da4
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.0040446a
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.0040446a
pop ecx
pop ecx
push eax
call fcn.0041e9fb
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.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xf8]
call fcn.00404fea
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 0x410813
push 0
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x410b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x160]
mov dword [edi + 0x60], eax
call fcn.00404da4
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.0040446a
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.0040446a
pop ecx
pop ecx
push eax
call fcn.0041e9fb
pop ecx
pop ecx
lea eax, [ebp - 0x160]
push eax
push esi
push 0x9f
jmp 0x410a9c
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 0x410c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x210]
mov dword [edi + 0x60], eax
call fcn.00404da4
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.0040446a
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.0040446a
pop ecx
pop ecx
push eax
call fcn.0041e9fb
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.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x1a8]
call fcn.00404fea
lea ecx, [ebp - 0x1a8]
jmp 0x410ac0
mov cx, word [ebp - 0xa8]
mov al, 1
mov word [edi + 0x18], cx
call fcn.00536508
ret