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

Disassembly:
push 0x1bc
mov eax, 0x4d9607
call fcn.004d631c
mov edi, ecx
push 0x4ebbc4
lea ecx, [ebp - 0x40]
call fcn.00401a11
lea esi, [edi + 0x68]
xor ebx, ebx
cmp dword [esi], 2
mov ecx, esi
mov dword [ebp - 4], ebx
jne 0x40e0de
lea eax, [ebp - 0x28]
push eax
call fcn.0040db22
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b70
lea ecx, [ebp - 0x28]
jmp 0x40e10e
lea eax, [ebp - 0x58]
push eax
call fcn.0040db22
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040d7ed
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b70
lea ecx, [ebp - 0x28]
call fcn.00401f5a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.00401f5a
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 0x40e1a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.004038fa
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push str.WinHttpConnect_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 - 0x118]
push eax
push str.Http::open
push 0xf7
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0xb0]
call fcn.00403ad6
lea ecx, [ebp - 0xb0]
jmp 0x40e4d0
cmp dword [esi], 2
mov eax, 0x100
mov ecx, 0x800100
mov dword [ebp - 0x68], 0x4ecf7c
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 0x40e242
sub eax, 1
je 0x40e239
push 1
push 3
lea ecx, [ebp - 0x118]
call fcn.004038fa
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 3
push str.NOT_IMPLEMENTED_
push eax
call fcn.0040898a
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.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.00403ad6
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 0x40e249
mov dword [ebp - 0x5c], str.POST
jmp 0x40e249
mov dword [ebp - 0x5c], 0x4ecf84
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.0041c643
cmp dword [eax + 0x14], 8
jb 0x40e25c
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.00401f5a
cmp dword [edi + 0x14], 0
jne 0x40e2d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.004038fa
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push str.WinHttpOpenRequest_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 - 0x118]
push eax
push str.Http::open
push 0x111
jmp 0x40e180
cmp byte [edi + 0x1a], 0
jne 0x40e34a
cmp dword [esi], 2
jne 0x40e34a
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 0x40e34a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.004038fa
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.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 - 0x118]
push eax
push str.Http::open
push 0x11c
jmp 0x40e180
push 1
push 3
lea ecx, [ebp - 0x1c8]
call fcn.004038fa
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0040db22
push eax
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 7
push str.Host:
push eax
call fcn.00402f9e
pop ecx
pop ecx
push eax
call fcn.00407c4c
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00401f5a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00407daf
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.00401f5a
test esi, esi
jne 0x40e41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.004038fa
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 8
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x126
jmp 0x40e492
cmp dword [edi + 0x64], 1
jne 0x40e4bd
lea eax, [edi + 0xc0]
cmp dword [eax + 0x14], 8
jb 0x40e432
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 0x40e4bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.004038fa
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 9
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x12f
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0xb0]
call fcn.00403ad6
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 0x40e4bf
mov bl, 1
lea ecx, [ebp - 0x160]
call fcn.00403ad6
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.00401f5a
mov al, bl
call fcn.004d62c6
ret