Function at 0x410c13
Capabilities:
Prepare http request
Set http header

Disassembly:
push 0x1bc
mov eax, 0x539e85
call fcn.0053655e
mov edi, ecx
push 0x559fc4
lea ecx, [ebp - 0x40]
call fcn.00401cd4
lea esi, [edi + 0x68]
xor ebx, ebx
cmp dword [esi], 2
mov ecx, esi
mov dword [ebp - 4], ebx
jne 0x410c57
lea eax, [ebp - 0x28]
push eax
call fcn.0041069b
push eax
lea ecx, [ebp - 0x40]
call fcn.004035f6
lea ecx, [ebp - 0x28]
jmp 0x410c87
lea eax, [ebp - 0x58]
push eax
call fcn.0041069b
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004102cf
push eax
lea ecx, [ebp - 0x40]
call fcn.004035f6
lea ecx, [ebp - 0x28]
call fcn.0040257a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.0040257a
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
movzx eax, word [edi + 0x6c]
cmovae ecx, dword [ebp - 0x40]
push ebx
push eax
push ecx
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x410d21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push str.WinHttpConnect_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 - 0x118]
push eax
push str.Http::open
push 0xf7
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xb0]
call fcn.00404fea
lea ecx, [ebp - 0xb0]
jmp 0x411049
cmp dword [esi], 2
mov eax, 0x100
mov ecx, 0x800100
mov dword [ebp - 0x68], 0x55b4e4
cmove eax, ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x5c], ebx
sub eax, ebx
je 0x410dbb
sub eax, 1
je 0x410db2
push 1
push 3
lea ecx, [ebp - 0x118]
call fcn.00404da4
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 3
push str.NOT_IMPLEMENTED_
push eax
call fcn.0040b103
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push eax
push str.Http::open
push 0x10a
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.00404fea
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x410dc2
mov dword [ebp - 0x5c], str.POST
jmp 0x410dc2
mov dword [ebp - 0x5c], 0x55b4ec
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.0041f510
cmp dword [eax + 0x14], 8
jb 0x410dd5
mov eax, dword [eax]
push dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x5c]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x58]
mov dword [edi + 0x14], eax
call fcn.0040257a
cmp dword [edi + 0x14], 0
jne 0x410e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push str.WinHttpOpenRequest_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 - 0x118]
push eax
push str.Http::open
push 0x111
jmp 0x410cf9
cmp byte [edi + 0x1a], 0
jne 0x410ec3
cmp dword [esi], 2
jne 0x410ec3
push 4
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x1100
push eax
push 0x1f
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x410ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 5
push str.WinHttpSetOption_failed_while_disabling_certificates_check._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 - 0x118]
push eax
push str.Http::open
push 0x11c
jmp 0x410cf9
push 1
push 3
lea ecx, [ebp - 0x1c8]
call fcn.00404da4
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0041069b
push eax
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 7
push str.Host:
push eax
call fcn.0040446a
pop ecx
pop ecx
push eax
call fcn.0040a098
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.0040257a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0040a1fb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040257a
test esi, esi
jne 0x410f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 8
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x126
jmp 0x41100b
cmp dword [edi + 0x64], 1
jne 0x411036
lea eax, [edi + 0xc0]
cmp dword [eax + 0x14], 8
jb 0x410fab
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x411036
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00404da4
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 9
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x12f
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0xb0]
call fcn.00404fea
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x411038
mov bl, 1
lea ecx, [ebp - 0x160]
call fcn.00404fea
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x40]
call fcn.0040257a
mov al, bl
call fcn.00536508
ret