Function at 0x493a40
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560aac
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x200
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x128], xmm0
mov dword [ebp - 0x128], 0x5e52a4
mov dword [ebp - 0x124], 0
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x128]
push 0x20119
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax], str.SOFTWAREMcAfeeWebAdvisor
mov dword [eax + 4], 0x1a
call fcn.0041b060
test eax, eax
jne 0x493bae
lea eax, [ebp - 0x12c]
push eax
sub esp, 8
lea ecx, [ebp - 0x128]
mov eax, esp
mov dword [eax], str.AdhocTelemetryAzure
mov dword [eax + 4], 0x13
call fcn.00430040
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x493c58
cmp eax, 2
je 0x493c58
call fcn.0045b3b0
push 2
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x130]
mov dword [ebp - 0x130], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x12c], 0x5c
call fcn.00418540
mov edx, str.Querying_AdhocTelemetryAzure_value_failed:
lea ecx, [ebp - 0x210]
call fcn.004185a0
lea ecx, [ebp - 0x210]
call fcn.0043d470
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x210]
call fcn.0043d500
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
xor eax, eax
cmp eax, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
sete byte [ebp - 0x16d]
mov dword [ebp - 0x128], 0x5e52a4
test eax, eax
je 0x493bdc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x16d], 0
jne 0x493c63
call fcn.0045b3b0
push 3
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x128]
mov dword [ebp - 0x128], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x124], 0x104
call fcn.00418540
mov edx, str.Not_sending_to_Azure_as_AdhocTelemetryAzure_registry_key_is_set_to_false
lea ecx, [ebp - 0xb8]
call fcn.004185a0
lea ecx, [ebp - 0x60]
call fcn.00459e90
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov al, 1
jmp 0x494392
mov eax, dword [ebp - 0x12c]
jmp 0x493bb0
cmp byte [esi + 0x28], 0
jne 0x493cc7
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x128]
mov dword [ebp - 0x128], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x124], 0x10a
call fcn.00418540
mov edx, str.Failed_to_send_event_to_Azure__event_sender_not_initialized_for_Azure.
lea ecx, [ebp - 0xb8]
call fcn.004185a0
lea ecx, [ebp - 0x60]
call fcn.00459e90
mov dword [ebp - 4], 3
jmp 0x49437d
cmp dword [esi + 0x2c], 0
lea ecx, [esi + 0x2c]
movzx eax, word [esi + 0x68]
je 0x494307
cmp dword [esi + 0x30], 0
jne 0x494307
lea edx, [ebp - 0x16c]
mov dword [ebp - 0x164], 0
push edx
push eax
push dword [esi + 0x60]
xorps xmm0, xmm0
movq qword [ebp - 0x16c], xmm0
call fcn.0049db10
test al, al
je 0x494307
mov dword [ebp - 0x12c], esi
xor eax, eax
mov dword [ebp - 4], 8
cmp dword [esi + 0x5c], 2
mov ecx, 0x800000
cmove eax, ecx
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x494251
cmp dword [esi + 0x34], 0
jne 0x494251
push eax
push 0
push 0
push 0
lea eax, [esi + 0x8c]
push eax
push dword [esi + 0x48c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x34], eax
test eax, eax
je 0x494251
mov dword [ebp - 0x124], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x148]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
push 0x5e4c28
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x134], 0
call fcn.00417c00
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.00492eb0
test al, al
jne 0x493e2a
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x120]
mov dword [ebp - 0x120], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x11c], 0x120
call fcn.00418540
mov edx, str.Failed_to_create_access_token
lea ecx, [ebp - 0xb8]
call fcn.004185a0
lea ecx, [ebp - 0x60]
call fcn.00459e90
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov byte [ebp - 0x16d], 0
jmp 0x494228
mov ecx, dword [ebp - 0x138]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0xf
jb 0x4943b2
cmp dword [ebp - 0x134], 8
lea eax, [ebp - 0x148]
push ecx
cmovae eax, dword [ebp - 0x148]
push eax
push 0xf
push str.Authorization:
push ecx
push dword [ebp - 0x124]
lea ecx, [ebp - 0x160]
call fcn.0041c800
lea eax, [esi + 0x490]
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x493e81
mov eax, dword [eax]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x494187
push 0x40000000
push dword [esi + 0x4a0]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x494187
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
mov ecx, dword [esi + 0x34]
cmovae eax, dword [ebp - 0x160]
test ecx, ecx
je 0x49410f
push 0x40000000
push dword [ebp - 0x150]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x49410f
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x493eee
mov edi, dword [edi]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x494094
push 0
push ecx
push ecx
push edi
push 0xffffffffffffffff
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x494094
mov eax, dword [esi + 0x34]
test eax, eax
je 0x494019
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
jne 0x494019
mov edi, dword [esi + 0x34]
test edi, edi
jne 0x493f3a
xor eax, eax
jmp 0x493f88
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00512700
add esp, 0xc
mov dword [ebp - 0x11c], 0xff
lea eax, [ebp - 0x11c]
push 0
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x493f88
lea eax, [ebp - 0x118]
push eax
call fcn.0053e076
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [esi + 0x5a0], eax
je 0x49400d
cmp dword [esi + 0x5a4], eax
je 0x49400d
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x140
call fcn.00418540
mov edx, str.HTTP_status_error_for_Azure:
lea ecx, [ebp - 0x210]
call fcn.004185a0
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x210]
call fcn.004186a0
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
mov byte [ebp - 4], 0x12
jmp 0x4941fd
mov byte [ebp - 0x16d], 1
jmp 0x49421d
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x139
call fcn.00418540
mov edx, str.HTTP_receive_response_failed_for_Azure:
lea ecx, [ebp - 0x210]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x210]
call fcn.0043d580
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
mov byte [ebp - 4], 0x11
jmp 0x4941fd
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x133
call fcn.00418540
mov edx, str.HTTP_send_request_failed_for_Azure:
lea ecx, [ebp - 0x210]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x210]
call fcn.0043d580
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
mov byte [ebp - 4], 0x10
jmp 0x4941fd
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x12d
call fcn.00418540
mov edx, str.HTTP_add_request_header_failed_for_Azure_Authorization:
lea ecx, [ebp - 0x210]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x210]
call fcn.0043d580
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
mov byte [ebp - 4], 0xf
jmp 0x4941fd
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x128
call fcn.00418540
mov edx, str.HTTP_add_request_header_failed_for_AZURE_CONTENT_TYPE:
lea ecx, [ebp - 0x210]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x210]
call fcn.0043d580
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x1b8]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004f7d4c
add esp, 4
mov byte [ebp - 0x16d], 0
lea ecx, [ebp - 0x160]
call fcn.00417680
lea ecx, [ebp - 0x148]
call fcn.00417680
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4942e7
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x34], 0
jmp 0x4942e7
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x164], 0x118
call fcn.00418540
mov edx, str.HTTP_open_request_failed:
lea ecx, [ebp - 0x210]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x210]
call fcn.0043d580
lea ecx, [ebp - 0x1b8]
call fcn.00459e90
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov byte [ebp - 0x16d], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4942fc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x30], 0
mov al, byte [ebp - 0x16d]
jmp 0x494392
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x168]
mov dword [ebp - 0x168], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x164], 0x110
call fcn.00418540
mov edx, str.HTTP_connection_failed:
lea ecx, [ebp - 0xb8]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0xb8]
call fcn.0043d580
lea ecx, [ebp - 0x60]
call fcn.00459e90
mov dword [ebp - 4], 7
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::ios_base.0
push eax
call fcn.004f7d4c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050fd4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00415cd0
int3