Function at 0x487ad0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8518
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x80]
call fcn.00486e80
push str.System
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x487d52
mov dword [ebp - 0x1c], 0x10000
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x80]
add ecx, 0x28
call fcn.00419220
cmp eax, dword [ebp - 0x24]
jae 0x487d33
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 9
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x487bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7a
jne 0x487bec
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.004443f2
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 9
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov dword [ebp - 0x2c], eax
jmp 0x487bf1
jmp 0x487d33
cmp dword [ebp - 0x2c], 0
je 0x487d2e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x34]
jae 0x487d2e
push 0x38
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x5c], 0
je 0x487c40
mov ecx, dword [ebp - 0x5c]
call fcn.00438970
mov dword [ebp - 0x84], eax
jmp 0x487c4a
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x38
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.00407010
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 0x1a]
mov word [ebp - 0x48], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x40], eax
jmp 0x487ca8
mov cx, word [ebp - 0x3c]
add cx, 1
mov word [ebp - 0x3c], cx
movzx edx, word [ebp - 0x3c]
movzx eax, word [ebp - 0x48]
cmp edx, eax
jge 0x487cfd
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00406f50
mov dword [ebp - 4], 1
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.00407120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406fd0
mov eax, dword [ebp - 0x40]
push eax
call fcn.00444a90
add esp, 4
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x40], edx
jmp 0x487c9c
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x80]
add ecx, 0x28
call fcn.004329a0
mov ecx, dword [ebp - 0x80]
add ecx, 0x28
call fcn.00419220
cmp eax, dword [ebp - 0x24]
jb 0x487d1e
jmp 0x487d2e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx]
mov dword [ebp - 0x38], edx
jmp 0x487c0a
jmp 0x487b52
cmp dword [ebp - 0x14], 0
je 0x487d52
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004443f2
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x487d69
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret