Function at 0x42a660
Capabilities:
Access the windows event log
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, edx
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x49f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 7
ja 0x42a7a9
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], esi
mov ecx, esi
add ecx, esi
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + esi*2 - 0x28], 0
lea ebx, [ebp - 0x28]
movsd xmm0, qword [ebx + 0x10]
movsd qword [ebp - 0x30], xmm0
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x40], xmm0
mov ecx, ebx
mov edx, edi
call fcn.0042dda0
cmp dword [ebp - 0x2c], 8
jb 0x42a6e8
mov eax, dword [ebp - 0x40]
jmp 0x42a6eb
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
jb 0x42a6f4
mov ebx, dword [ebp - 0x28]
mov ecx, 4
lea edx, [ebp + 8]
push ecx
push edx
push ecx
push eax
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
xor ebx, ebx
test eax, eax
jne 0x42a7c7
mov edi, dword [ebp - 0x50]
mov dword [edi], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42a758
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a74e
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a886
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fb35
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42a795
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a78b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a886
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fb35
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501b0
mov eax, edi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
mov al, byte [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
lea ecx, [ebp - 0x28]
call fcn.004534f0
jmp 0x42a6c0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x4c], eax
mov ecx, 0x128
mov edx, str.RegistrySetValueDword
mov eax, str.0x_X_in__S:_d
push ecx
push edx
push ebx
push eax
call fcn.004525f0
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x48], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.0044faf7
add esp, 4
mov edi, eax
xor eax, eax
push esi
push eax
xor esi, esi
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x128
push eax
mov eax, str.RegistrySetValueDword
push eax
push ebx
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x48]
push edi
call fcn.00452650
add esp, 0x1c
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42a878
mov esi, eax
lea eax, [ebp - 0x44]
mov dword [eax], edi
xor ecx, ecx
inc ecx
xor edx, edx
push edx
push eax
push edx
push ecx
push edx
push ebx
push edx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.0044fb00
add esp, 4
jmp 0x42a716
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3