Function at 0x782d94
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
add ebx, ebx
inc ebx
test ebx, ebx
js 0x782db9
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x782db2
mov ecx, esp
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x78309b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
add eax, 0xc
call fcn.00409b00
mov eax, dword [ebp + 8]
add eax, 8
call fcn.00409b00
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, edi
call fcn.0040a644
push eax
mov eax, dword [0x7c8764]
mov eax, dword [eax]
call fcn.0040a644
push eax
call sub.advapi32.dll_OpenEventLogW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x783070
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetNumberOfEventLogRecords
test eax, eax
jne 0x782e4c
mov dword [ebp - 0x18], 0x200
mov dword [ebp - 0x24], 0x7ffff
mov eax, dword [ebp - 0x24]
call fcn.00407064
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x783069
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x783023
cmp dword [esi], 0
jbe 0x78301d
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x18]
cmp ebx, eax
jne 0x783002
push ebp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.00782d1c
pop ecx
test al, al
je 0x783002
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x24]
add edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.0040a6a4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0042385c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
add eax, 0xc
call fcn.00409ef0
mov eax, dword [ebp - 0x14]
movzx ebx, word [eax + 0x1a]
push ebx
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x782cf4]
call fcn.0040cbb8
add esp, 4
test ebx, ebx
jle 0x782fa8
xor edx, edx
push ebp
push 0x782f7c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
call fcn.00409ff8
lea esi, [eax + 1]
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov edi, ebx
dec edi
test edi, edi
jle 0x782f72
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x24]
add ebx, dword [ebp - 0x14]
mov eax, esi
add eax, eax
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x782f45
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x782f56
mov eax, dword [ebp + 8]
add eax, 0xc
mov edx, ebx
call fcn.0040a6a4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [eax + edx*4], ebx
mov eax, ebx
call fcn.00409ff8
lea eax, [eax + esi + 1]
mov esi, eax
inc dword [ebp - 0x28]
dec edi
jne 0x782f27
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x782fa8
mov eax, dword [ebp + 8]
add eax, 8
mov edx, dword [ebp - 0x14]
add edx, 0x38
call fcn.0040a6a4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov al, 1
call fcn.004d9584
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [0x7c8578]
mov eax, dword [eax]
call fcn.004dc664
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
call fcn.004092ec
jmp 0x783070
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
sub dword [esi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp dword [esi], 0
ja 0x782e80
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 9
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ReadEventLogW
test eax, eax
jne 0x782e77
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x783070
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00407080
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseEventLog
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7830a2
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00409b60
lea eax, [ebp - 8]
mov edx, dword [0x782cf4]
call fcn.0040ccdc
pop eax
jmp eax