Function at 0x1029c90
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
push edi
mov ecx, 0xd
mov esi, 0x1006aac
lea edi, [ebp - 0x268]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0x124], eax
mov cx, word [0x10015d4]
mov word [ebp - 0x230], cx
push 0x106
push 0
lea edx, [ebp - 0x22e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x118], ax
push 0x106
push 0
lea ecx, [ebp - 0x116]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104ee20
push 0x84
lea edx, [ebp - 0x230]
push edx
call fcn.01010390
mov eax, dword [ebp + 0x18]
push eax
push 0x84
lea ecx, [ebp - 0x118]
push ecx
call fcn.01010390
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
lea edx, [ecx + esi*2 + 0x12]
mov dword [ebp - 4], edx
push 0x7d1
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x1029db1
jmp 0x1029fa2
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 0x104ed18
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x1029f93
push 0x104c87c
call dword [0x104ef44]
test eax, eax
jne 0x1029efe
cmp dword [0x104e7a8], 0
je 0x1029ef3
cmp dword [0x104e0cc], 0
je 0x1029ef3
lea edx, [ebp - 0x268]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c87c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1029f25
cmp dword [0x104e0cc], 0
je 0x1029f25
lea eax, [ebp - 0x268]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0x4000429c
push 2
mov cx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0x104c87c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1029f86
cmp dword [0x104e0cc], 0
je 0x1029f86
lea eax, [ebp - 0x268]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov edx, dword [ebp - 0x120]
push edx
call fcn.01011d50
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret