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

Disassembly:
push 0x1bc
mov eax, 0x47ae02
call fcn.00478470
mov edi, ecx
push 0x48090c
lea ecx, [ebp - 0x40]
call fcn.004019d1
lea esi, [edi + 0x68]
xor ebx, ebx
cmp dword [esi], 2
mov ecx, esi
mov dword [ebp - 4], ebx
jne 0x40b10f
lea eax, [ebp - 0x28]
push eax
call fcn.0040ab53
push eax
lea ecx, [ebp - 0x40]
call fcn.004034a9
lea ecx, [ebp - 0x28]
jmp 0x40b13f
lea eax, [ebp - 0x58]
push eax
call fcn.0040ab53
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040aad4
push eax
lea ecx, [ebp - 0x40]
call fcn.004034a9
lea ecx, [ebp - 0x28]
call fcn.00401ef9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.00401ef9
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 0x40b1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00403264
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push str.WinHttpConnect_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 - 0x118]
push eax
push str.Http::open
push 0xf7
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0xb0]
call fcn.004033bd
lea ecx, [ebp - 0xb0]
jmp 0x40b501
cmp dword [esi], 2
mov eax, 0x100
mov ecx, 0x800100
mov dword [ebp - 0x68], 0x4816cc
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 0x40b273
sub eax, 1
je 0x40b26a
push 1
push 3
lea ecx, [ebp - 0x118]
call fcn.00403264
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 3
push str.NOT_IMPLEMENTED_
push eax
call fcn.00406105
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.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.004033bd
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 0x40b27a
mov dword [ebp - 0x5c], str.POST
jmp 0x40b27a
mov dword [ebp - 0x5c], 0x4816d4
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.0040f41d
cmp dword [eax + 0x14], 8
jb 0x40b28d
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.00401ef9
cmp dword [edi + 0x14], 0
jne 0x40b304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00403264
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push str.WinHttpOpenRequest_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 - 0x118]
push eax
push str.Http::open
push 0x111
jmp 0x40b1b1
cmp byte [edi + 0x1a], 0
jne 0x40b37b
cmp dword [esi], 2
jne 0x40b37b
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 0x40b37b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00403264
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.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 - 0x118]
push eax
push str.Http::open
push 0x11c
jmp 0x40b1b1
push 1
push 3
lea ecx, [ebp - 0x1c8]
call fcn.00403264
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0040ab53
push eax
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 7
push str.Host:
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040556f
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00401ef9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0040b783
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.00401ef9
test esi, esi
jne 0x40b44b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00403264
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 8
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x126
jmp 0x40b4c3
cmp dword [edi + 0x64], 1
jne 0x40b4ee
lea eax, [edi + 0xc0]
cmp dword [eax + 0x14], 8
jb 0x40b463
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 0x40b4ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x118]
mov dword [edi + 0x60], eax
call fcn.00403264
push dword [edi + 0x60]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 9
push str.WinHttpAddRequestHeaders_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 - 0x118]
push eax
push str.Http::open
push 0x12f
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0xb0]
call fcn.004033bd
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 0x40b4f0
mov bl, 1
lea ecx, [ebp - 0x160]
call fcn.004033bd
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.00401ef9
mov al, bl
call fcn.0047842b
ret