Function at 0x42e940
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov dword [ebp - 0x74], ecx
mov eax, dword [0x4a0088]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x30]
mov ecx, esi
xor edx, edx
push 0
push str.ServicesSettingsServer
call fcn.0042ba50
add esp, 8
mov dword [ebp - 0x70], esp
sub esp, 0x20
mov ebx, esp
lea edi, [ebx + 4]
push 0x40
call fcn.0044f9c3
add esp, 4
movups xmm0, xmmword [str.https:__firefox.settings.services.mozilla.com_v1]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x499136]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x499146]
movups xmmword [eax + 0x20], xmm0
mov byte [eax + 0x30], 0
mov dword [ebx + 4], eax
mov dword [ebx + 0x14], 0x30
mov dword [ebx + 0x18], 0x3f
mov byte [ebx + 0x1c], 1
lea eax, [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov dword [ebx], eax
cmp dword [esi + 0x1c], 0
jne 0x42edad
lea ebx, [ebp - 0x14]
lea esi, [ebp - 0x48]
xorps xmm0, xmm0
movups xmmword [esi - 0x13], xmm0
movups xmmword [esi - 0x1c], xmm0
mov ecx, esi
mov edx, ebx
call fcn.00453920
mov ecx, edi
call fcn.00453660
mov esp, dword [ebp - 0x70]
push 0x40
call fcn.0044f9c3
add esp, 4
mov edi, eax
movups xmm0, xmmword [0x499146]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x499136]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.https:__firefox.settings.services.mozilla.com_v1]
movups xmmword [eax], xmm0
mov byte [eax + 0x30], 0
cmp byte [esi - 4], 0
jne 0x42ea54
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x34], 0x3f
lea ecx, [ebp - 0x64]
call fcn.00453660
cmp byte [edi + 0x2f], 0x2f
jne 0x42ea79
mov edi, 0x30
mov ebx, 0x3f
jmp 0x42eb23
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 0x10
jb 0x42ea63
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
cmp esi, 0xf
ja 0x42ea83
mov eax, dword [ebp - 0x6c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
mov ebx, 0xf
jmp 0x42ead2
mov esi, 0x30
jmp 0x42eb11
mov ebx, esi
or ebx, 0xf
mov eax, SysReAllocString
cmp ebx, eax
cmovae ebx, eax
cmp ebx, 0xfff
jb 0x42eab3
lea eax, [ebx + 0x24]
push eax
call fcn.0044f9c3
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x42eabf
lea eax, [ebx + 1]
push eax
call fcn.0044f9c3
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x6c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
push 0x40
push edi
call fcn.0044f9c3
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00453660
xor edi, edi
test esi, esi
je 0x42eb23
cmp ebx, 0x10
jb 0x42eafb
mov edi, dword [ebp - 0x48]
jmp 0x42eafe
lea edi, [ebp - 0x48]
cmp byte [esi + edi - 1], 0x2f
jne 0x42eb09
mov edi, esi
jmp 0x42eb23
cmp esi, ebx
jae 0x42ecc7
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov word [edi + esi], 0x2f
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov eax, ebx
sub eax, edi
cmp eax, 0x44
jae 0x42eb54
sub esp, 0x10
mov al, byte [ebp - 0x64]
mov byte [esp + 4], al
mov eax, 0x44
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], str.buckets_main_collections_windows_default_browser_agent_records_state
lea ecx, [ebp - 0x48]
call fcn.00403eb0
jmp 0x42eb7f
lea eax, [edi + 0x44]
mov dword [ebp - 0x38], eax
cmp ebx, 0x10
jb 0x42eb64
mov esi, dword [ebp - 0x48]
jmp 0x42eb67
lea esi, [ebp - 0x48]
lea eax, [esi + edi]
push 0x44
push str.buckets_main_collections_windows_default_browser_agent_records_state
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + edi + 0x44], 0
push str.default_browser_agent:_Remote_service_disabled_state_URL:_
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00453700
add esp, 8
lea edi, [ebp - 0x48]
mov ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x42eba3
mov edx, dword [ebp - 0x48]
push ecx
push edx
push eax
call fcn.004030a0
add esp, 0xc
push 0x499458
push eax
call fcn.00453700
add esp, 8
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, 0xa
push eax
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movsx eax, al
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::put_char_]
mov ebx, dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::flush_void_]
mov ecx, esi
call ebx
cmp dword [ebp - 0x34], 0x10
jb 0x42ebf0
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.0043ef70
add esp, 8
mov edi, eax
push str.default_browser_agent:_HRESULT:_0x
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00453700
add esp, 8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, 0xfffff1ff
and edx, dword [eax + ecx + 0x14]
or edx, 0x800
mov dword [eax + ecx + 0x14], edx
mov ecx, eax
push edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, 0xa
push eax
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movsx eax, al
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::put_char_]
mov ecx, esi
call ebx
test edi, edi
js 0x42eced
cmp dword [ebp - 0x68], 0
setne al
xor edi, edi
mov ebx, dword [ebp - 0x74]
mov byte [ebx], al
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x42eca9
mov ecx, dword [ebp - 0x48]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x42ec9f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42edb5
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044f9c3
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x42eda0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
mov al, byte [ebp - 0x64]
mov byte [esp + 4], al
mov dword [esp + 8], 0x2f
mov dword [esp], 1
lea ecx, [ebp - 0x48]
call fcn.00454c80
jmp 0x42eb1d
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x70], eax
mov ecx, 0x46
mov edx, str.IsAgentRemoteDisabledInternal
mov eax, str.0x_X_in__S:_d
push ecx
push edx
push edi
push eax
call fcn.00451d80
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x6c], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.0044f9c3
add esp, 4
mov ebx, eax
xor eax, eax
push esi
push eax
xor esi, esi
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x46
push eax
mov eax, str.IsAgentRemoteDisabledInternal
push eax
push edi
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x6c]
push ebx
call fcn.00451de0
add esp, 0x1c
push dword [ebp - 0x70]
push esi
call dword [sym.imp.advapi32.dll_RegisterEventSourceW]
test eax, eax
je 0x42ed90
mov esi, eax
lea eax, [ebp - 0x64]
mov dword [eax], ebx
xor ecx, ecx
inc ecx
xor edx, edx
push edx
push eax
push edx
push ecx
push edx
push edi
push edx
push ecx
push esi
call dword [sym.imp.advapi32.dll_ReportEventW]
push esi
call dword [sym.imp.advapi32.dll_DeregisterEventSource]
push ebx
call fcn.0044f120
add esp, 4
xor eax, eax
jmp 0x42ec69
lea ecx, [ebp - 0x30]
call fcn.00453660
jmp 0x42ecb3
add ebx, 0x20
jmp 0x42e9cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3