Function at 0x40f0a7
Capabilities:
Access the windows event log

Disassembly:
push 0x64
mov eax, 0x433525
call fcn.00421825
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
xor edi, edi
cmp dword [esi + 8], edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], eax
je 0x40f37b
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi]
ja 0x40f37b
mov eax, dword [ebp + 0x1c]
cmp eax, edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
je 0x40f2c3
cmp word [eax], di
je 0x40f2c3
push eax
call fcn.00421a5c
mov ebx, eax
pop ecx
shl eax, 2
push eax
push edi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x60], edi
jne 0x40f11c
mov eax, 0x8007000e
jmp 0x40f37d
test ebx, ebx
jbe 0x40f126
mov ecx, ebx
xor eax, eax
rep stosd dword es:[edi], eax
and dword [ebp - 0x64], 0
test ebx, ebx
jbe 0x40f2c3
mov esi, dword [ebp - 0x60]
lea edi, [ebp + 0x20]
lea ebx, [ebp + 0x1c]
sub edi, 0x10
mov dword [ebp - 0x58], esi
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp + 0x1c]
movzx eax, word [eax + ecx*2]
push eax
call fcn.00424959
sub eax, 0x64
pop ecx
je 0x40f276
sub eax, 3
je 0x40f232
sub eax, 6
je 0x40f213
sub eax, 6
je 0x40f1fa
push 4
pop ecx
sub eax, ecx
je 0x40f1df
dec eax
jne 0x40f359
add ebx, ecx
mov edx, dword [ebx]
add edi, ecx
cmp edx, 0xffffffff
mov dword [ebp - 0x54], edi
je 0x40f362
mov esi, 0x439270
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
push 9
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0x10
stosw word es:[edi], ax
push 0x14
lea eax, [ebp - 0x38]
push eax
push edx
call fcn.004247f3
lea eax, [ebp - 0x3c]
push eax
call fcn.0040e151
mov ecx, dword [ebp - 0x58]
add esp, 0x14
mov dword [ecx], eax
test eax, eax
je 0x40f362
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
jmp 0x40f2ab
add ebx, ecx
mov eax, dword [ebx]
add edi, ecx
cmp eax, 0xffffffff
je 0x40f362
push eax
call fcn.0040e151
pop ecx
jmp 0x40f2a1
add ebx, 4
mov eax, dword [ebx]
add edi, 4
cmp eax, 0xffffffff
je 0x40f362
push eax
call fcn.0040e1b5
jmp 0x40f1f4
add ebx, 4
mov eax, dword [ebx]
add edi, 4
cmp eax, 0xffffffff
je 0x40f362
movzx eax, ax
push esi
push eax
call fcn.0040e251
pop ecx
pop ecx
jmp 0x40f2a3
add edi, 0x10
mov dword [ebp - 0x54], edi
mov esi, edi
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
add ebx, 0x10
movsd dword es:[edi], dword [esi]
call fcn.00409db3
and dword [ebp - 4], 0
push dword [eax]
call fcn.0040e151
mov esi, dword [ebp - 0x58]
pop ecx
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi], 0
jmp 0x40f1ce
add ebx, 4
mov eax, dword [ebx]
add edi, 4
cmp eax, 0xffffffff
je 0x40f362
push 0xa
push 0x14
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.004247f3
lea eax, [ebp - 0x38]
push eax
call fcn.0040e151
add esp, 0x14
mov dword [esi], eax
test eax, eax
je 0x40f362
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
add esi, 4
cmp eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], esi
jb 0x40f141
mov esi, dword [ebp - 0x68]
call fcn.0040e28a
push eax
lea ecx, [ebp - 0x54]
call fcn.0040cec9
mov dword [ebp - 4], 1
push dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x60]
and eax, 0xffffff00
push dword [ebp + 0x14]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00408b60
pop ecx
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x40f321
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40f31e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x50], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040cd40
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40f354
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp dword [ebp - 0x5c], esi
jbe 0x40f351
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x40f351
push eax
call edi
inc esi
cmp esi, dword [ebp - 0x5c]
jb 0x40f341
push ebx
call edi
mov eax, dword [ebp - 0x50]
jmp 0x40f37d
mov dword [ebp - 0x50], 0x80070057
jmp 0x40f32d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40f376
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x50], eax
jmp 0x40f32d
xor eax, eax
call fcn.004218a8
ret