Function at 0x42d9f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x4a0088]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp edx, 1
jne 0x42da6f
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x42db8f
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], edi
mov ecx, edi
add ecx, edi
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + edi*2 - 0x28], 0
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
mov dword [esi + 0x18], 0
jmp 0x42db7b
lea edi, [ebp - 0x30]
push 0
push edi
call section..text
add esp, 8
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42dbad
mov ebx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x42dc97
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], edi
mov ecx, edi
add ecx, edi
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebp + edi*2 - 0x28], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov ebx, dword [ebp + 8]
je 0x42dcb5
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
cmp ecx, 8
jb 0x42daf6
mov ecx, dword [ebp - 0x28]
jmp 0x42daf9
lea ecx, [ebp - 0x28]
mov word [ecx + eax*2], 0x7c
mov word [ecx + eax*2 + 2], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, edx
sub edi, ecx
cmp edi, eax
jb 0x42dcde
lea edi, [ecx + eax]
mov dword [ebp - 0x18], edi
cmp edx, 8
jb 0x42db31
mov ebx, dword [ebp - 0x28]
jmp 0x42db34
lea ebx, [ebp - 0x28]
lea ecx, [ebx + ecx*2]
add eax, eax
push eax
push dword [ebp + 8]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebx + edi*2], 0
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x42db7b
push eax
call fcn.0044f120
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
mov al, byte [ebp - 0x30]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
lea ecx, [ebp - 0x28]
call fcn.00452fa0
jmp 0x42da52
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x38], eax
mov eax, 0x1e
mov ecx, str.MaybePrefixRegistryValueName
mov edx, 0x800700a1
mov edi, str.0x_X_in__S:_d
push eax
push ecx
push edx
push edi
call fcn.00451d80
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x34], ecx
lea ecx, [eax + eax]
add ecx, 2
xor ebx, ebx
dec ebx
cmp eax, 0xffffffff
cmovge ebx, ecx
push ebx
call fcn.0044f117
add esp, 4
mov edi, eax
xor eax, eax
push ebx
push eax
xor ebx, ebx
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x1e
push eax
mov eax, str.MaybePrefixRegistryValueName
push eax
mov eax, 0x800700a1
push eax
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x34]
push edi
call fcn.00451de0
add esp, 0x1c
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42dc74
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [eax], edi
sub esp, 0x24
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x463480]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.0044f120
add esp, 4
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x18], 0x800700a1
jmp 0x42db64
sub esp, 0xc
mov al, byte [ebp - 0x2c]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
lea ecx, [ebp - 0x28]
call fcn.00452fa0
jmp 0x42dad5
sub esp, 0x10
mov al, byte [ebp - 0x2c]
mov byte [esp + 4], al
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], 0x4995b6
lea ecx, [ebp - 0x28]
call fcn.004530b0
jmp 0x42db06
sub esp, 0x10
mov cl, byte [ebp - 0x2c]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], eax
lea ecx, [ebp - 0x28]
call fcn.004530b0
jmp 0x42db4c