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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb01c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x128]
xorps xmm0, xmm0
mov dword [ebp - 0x118], eax
movq qword [ebp - 0x128], xmm0
mov dword [ebp - 0x120], 0
call fcn.0043e7c0
push 0x20119
push 0x4ea790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x128]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], 0
call fcn.0043e9c0
test eax, eax
jne 0x42f217
lea eax, [ebp - 0x11c]
push eax
push str.AdhocTelemetryAzure
lea ecx, [ebp - 0x128]
call fcn.0043e9e0
mov dword [ebp - 0x158], eax
test eax, eax
je 0x42f217
cmp eax, 2
je 0x42f217
call fcn.0041a770
push 2
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x5d
call fcn.00412b24
mov edx, str.Querying_AdhocTelemetryAzure_value_failed:
lea ecx, [ebp - 0x1fc]
call fcn.0041a670
mov edx, fcn.0042b9e0
lea ecx, [ebp - 0x1fc]
call fcn.00416d90
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x1fc]
call fcn.004335f0
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0047379d
add esp, 4
xor eax, eax
mov dword [ebp - 0x11c], eax
jmp 0x42f21d
mov eax, dword [ebp - 0x11c]
cmp eax, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
sete bl
call fcn.0043e870
test bl, bl
jne 0x42f2a7
call fcn.0041a770
push 3
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x150], 0x105
call fcn.00412b24
lea ecx, [ebp - 0xb4]
call fcn.00433670
lea ecx, [ebp - 0x5c]
call fcn.0041c460
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0047379d
add esp, 4
mov al, 1
jmp 0x42fa35
cmp byte [esi + 0x28], 0
jne 0x42f306
call fcn.0041a770
push 1
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x150], 0x10b
call fcn.00412b24
lea ecx, [ebp - 0xb4]
call fcn.00433700
lea ecx, [ebp - 0x5c]
call fcn.0041c460
mov dword [ebp - 4], 3
jmp 0x42fa20
cmp dword [esi + 0x2c], 0
movzx eax, word [esi + 0x68]
je 0x42f9aa
cmp dword [esi + 0x30], 0
jne 0x42f9aa
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x120], 0
push ecx
push eax
push dword [esi + 0x60]
xorps xmm0, xmm0
lea ecx, [esi + 0x2c]
movq qword [ebp - 0x128], xmm0
call fcn.0043dae0
test al, al
je 0x42f9aa
mov dword [ebp - 0x158], 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 0x42f8fd
cmp dword [esi + 0x34], 0
jne 0x42f8fd
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 0x42f8fd
mov dword [ebp - 0x11c], esi
xor eax, eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x124], 0
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.0042e3b0
test al, al
jne 0x42f457
call fcn.0041a770
push 1
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x150], 0x121
call fcn.00412b24
mov edx, str.Failed_to_create_access_token
lea ecx, [ebp - 0xb4]
call fcn.00412b80
lea ecx, [ebp - 0x5c]
call fcn.0041c460
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0047379d
add esp, 4
xor bl, bl
jmp 0x42f89f
mov ecx, dword [ebp - 0x124]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0xf
jb 0x42fa53
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
push ecx
cmovae eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x14c]
push eax
push 0xf
push str.Authorization:
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x118]
call fcn.00415088
lea eax, [esi + 0x490]
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x42f4b4
mov eax, dword [eax]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x42f7b6
push 0x40000000
push dword [esi + 0x4a0]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x42f7b6
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
mov ecx, dword [esi + 0x34]
cmovae eax, dword [ebp - 0x14c]
test ecx, ecx
je 0x42f743
push 0x40000000
push dword [ebp - 0x13c]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
jne 0x42f743
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x42f527
mov eax, dword [eax]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x42f6c8
push 0
push edx
push edx
push eax
push 0xffffffffffffffff
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x42f6c8
mov eax, dword [esi + 0x34]
test eax, eax
je 0x42f64d
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
jne 0x42f64d
mov ebx, dword [esi + 0x34]
test ebx, ebx
jne 0x42f573
xor eax, eax
jmp 0x42f5c1
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0048b4c0
add esp, 0xc
mov dword [ebp - 0x118], 0xff
lea eax, [ebp - 0x118]
push 0
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x13
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x42f5c1
lea eax, [ebp - 0x114]
push eax
call fcn.00497471
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [esi + 0x5a0], eax
je 0x42f646
cmp dword [esi + 0x5a4], eax
je 0x42f646
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x141
call fcn.00412b24
mov edx, str.HTTP_status_error_for_Azure:
lea ecx, [ebp - 0x1fc]
call fcn.00412b80
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x1fc]
call fcn.00416fc0
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
mov byte [ebp - 4], 0x12
jmp 0x42f827
mov bl, 1
jmp 0x42f842
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x13a
call fcn.00412b24
mov edx, str.HTTP_receive_response_failed_for_Azure:
lea ecx, [ebp - 0x1fc]
call fcn.0041a670
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x1fc]
call fcn.00416e70
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
mov byte [ebp - 4], 0x11
jmp 0x42f827
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x134
call fcn.00412b24
mov edx, str.HTTP_send_request_failed_for_Azure:
lea ecx, [ebp - 0x1fc]
call fcn.0041a670
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x1fc]
call fcn.00416e70
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
mov byte [ebp - 4], 0x10
jmp 0x42f827
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x12e
call fcn.00412b24
lea ecx, [ebp - 0x1fc]
call fcn.00433820
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x1fc]
call fcn.00416e70
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
mov byte [ebp - 4], 0xf
jmp 0x42f827
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x129
call fcn.00412b24
lea ecx, [ebp - 0x1fc]
call fcn.00433790
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x1fc]
call fcn.00416e70
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x1a4]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0047379d
add esp, 4
xor bl, bl
mov edx, dword [ebp - 0x138]
cmp edx, 8
jb 0x42f882
mov ecx, dword [ebp - 0x14c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fa58
push edx
push ecx
call fcn.00488f15
add esp, 8
xor eax, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], ax
mov edx, dword [ebp - 0x120]
cmp edx, 8
jb 0x42f8df
mov ecx, dword [ebp - 0x134]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f8d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fa58
push edx
push ecx
call fcn.00488f15
add esp, 8
mov eax, dword [esi + 0x34]
test eax, eax
je 0x42f98e
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x34], 0
jmp 0x42f98e
call fcn.0041a770
push 1
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x150], 0x119
call fcn.00412b24
mov edx, str.HTTP_open_request_failed:
lea ecx, [ebp - 0x1fc]
call fcn.00412b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x1fc]
call fcn.00416e70
lea ecx, [ebp - 0x1a4]
call fcn.0041c460
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0047379d
add esp, 4
xor bl, bl
mov eax, dword [esi + 0x30]
test eax, eax
je 0x42f9a3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x30], 0
mov al, bl
jmp 0x42fa35
call fcn.0041a770
push 1
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], str.EventSender.cpp
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x150], 0x111
call fcn.00412b24
mov edx, str.HTTP_connection_failed:
lea ecx, [ebp - 0xb4]
call fcn.00412b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0xb4]
call fcn.00416e70
lea ecx, [ebp - 0x5c]
call fcn.0041c460
mov dword [ebp - 4], 7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], vtable.std::ios_base.0
push eax
call fcn.0047379d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret 4
call fcn.00414470
call fcn.0048e1b0
int3