Function at 0x432040
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 [0x4a1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp edx, 1
jne 0x4320bf
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 0x4321df
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 0x4321cb
lea edi, [ebp - 0x30]
push 0
push edi
call fcn.00401090
add esp, 8
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4321fd
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 0x4322e7
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 0x432305
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
cmp ecx, 8
jb 0x432146
mov ecx, dword [ebp - 0x28]
jmp 0x432149
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 0x43232e
lea edi, [ecx + eax]
mov dword [ebp - 0x18], edi
cmp edx, 8
jb 0x432181
mov ebx, dword [ebp - 0x28]
jmp 0x432184
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 0x4321cb
push eax
call fcn.004484c0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b70
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.0044fdb0
jmp 0x4320a2
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.0044eb90
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.00448d63
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.0044ebf0
add esp, 0x1c
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.advapi32.dll_RegisterEventSourceW]
test eax, eax
je 0x4322c4
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 [0x464480]
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.004484c0
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 0x4321b4
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.0044fdb0
jmp 0x432125
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], 0x49a4da
lea ecx, [ebp - 0x28]
call fcn.0044fec0
jmp 0x432156
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.0044fec0
jmp 0x43219c