Function at 0x42a5f0
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 0x42a739
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.0042dd30
cmp dword [ebp - 0x2c], 8
jb 0x42a678
mov eax, dword [ebp - 0x40]
jmp 0x42a67b
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
jb 0x42a684
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 0x42a757
mov edi, dword [ebp - 0x50]
mov dword [edi], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42a6e8
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a6de
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a816
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fa85
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42a725
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42a71b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42a816
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fa85
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450100
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.00453440
jmp 0x42a650
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.00452540
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.0044fa47
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.004525a0
add esp, 0x1c
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42a808
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.0044fa50
add esp, 4
jmp 0x42a6a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3