Function at 0x42a200
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov ebx, edx
mov dword [ebp - 0x54], ecx
mov eax, dword [0x4a0088]
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 edi, eax
cmp eax, 7
ja 0x42a369
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
lea ebx, [ebp - 0x28]
mov eax, dword [ebx]
mov dword [ebp - 0x50], eax
movups xmm0, xmmword [ebx + 4]
lea edi, [ebp - 0x40]
movups xmmword [edi + 4], xmm0
mov esi, dword [ebx + 0x14]
mov dword [edi], eax
mov dword [edi + 0x14], esi
mov ecx, ebx
mov edx, dword [ebp + 8]
call fcn.0042dd00
mov dword [ebp - 0x4c], 4
cmp esi, 8
cmovae edi, dword [ebp - 0x50]
cmp dword [ebx + 0x14], 8
jb 0x42a299
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x48]
xor esi, esi
push eax
push ecx
push 0
push 0x18
push edi
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x42a2ca
cmp eax, 2
mov edi, dword [ebp - 0x54]
jne 0x42a387
xor eax, eax
xor ebx, ebx
jmp 0x42a2d3
mov eax, dword [ebp - 0x48]
xor ebx, ebx
inc ebx
mov edi, dword [ebp - 0x54]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42a318
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a30e
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a449
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044f155
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42a355
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a34b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a449
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044f155
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
mov eax, edi
add esp, 0x4c
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], edi
lea ecx, [ebp - 0x28]
call fcn.00452fa0
jmp 0x42a25d
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x50], eax
mov ecx, 0x10d
mov edx, str.RegistryGetValueDword
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 - 0x58], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.0044f117
add esp, 4
xor ebx, ebx
push esi
mov esi, edi
mov edi, eax
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x10d
push eax
mov eax, str.RegistryGetValueDword
push eax
push esi
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
push edi
call fcn.00451de0
add esp, 0x1c
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42a439
lea edx, [ebp - 0x44]
mov dword [edx], edi
xor ecx, ecx
inc ecx
push ebx
push edx
push ebx
push ecx
push ebx
push esi
push ebx
push ecx
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.0044f120
add esp, 4
xor eax, eax
jmp 0x42a2d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3