Function at 0x4015e0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x574b20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea eax, [ebp - 0x40f]
push eax
call fcn.00509ed0
add esp, 0xc
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
call fcn.00507301
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x401640
jmp 0x401917
cmp dword [ebp + 8], 1
jne 0x4018ba
mov byte [ebp - 0x530], 0
push 0x103
push 0
lea edx, [ebp - 0x52f]
push edx
call fcn.00509ed0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x420], ax
xor ecx, ecx
mov dword [ebp - 0x41e], ecx
mov dword [ebp - 0x41a], ecx
mov dword [ebp - 0x416], ecx
mov word [ebp - 0x412], cx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x412]
push eax
movzx ecx, word [ebp - 0x416]
push ecx
movzx edx, word [ebp - 0x418]
push edx
movzx eax, word [ebp - 0x41a]
push eax
movzx ecx, word [ebp - 0x41e]
push ecx
movzx edx, word [ebp - 0x420]
push edx
push str._.4d__.2d__.2d__.2d:_.2d:_.4d
push 0x400
lea eax, [ebp - 0x410]
push eax
call fcn.004012f0
add esp, 0x24
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x53c], ecx
mov edx, dword [ebp - 0x53c]
add edx, 1
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x53c]
mov cl, byte [eax]
mov byte [ebp - 0x541], cl
add dword [ebp - 0x53c], 1
cmp byte [ebp - 0x541], 0
jne 0x4016fc
mov edx, dword [ebp - 0x53c]
sub edx, dword [ebp - 0x540]
mov dword [ebp - 0x548], edx
lea eax, [ebp - 0x410]
mov dword [ebp - 0x54c], eax
mov ecx, dword [ebp - 0x54c]
add ecx, 1
mov dword [ebp - 0x550], ecx
mov edx, dword [ebp - 0x54c]
mov al, byte [edx]
mov byte [ebp - 0x551], al
add dword [ebp - 0x54c], 1
cmp byte [ebp - 0x551], 0
jne 0x401747
mov ecx, dword [ebp - 0x54c]
sub ecx, dword [ebp - 0x550]
mov dword [ebp - 0x558], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, 0x400
sub ecx, dword [ebp - 0x548]
push ecx
mov edx, dword [ebp - 0x558]
lea eax, [ebp + edx - 0x410]
push eax
call fcn.00507301
add esp, 0x10
mov dword [ebp - 0x424], eax
push 0x104
lea ecx, [ebp - 0x530]
push ecx
call fcn.00401a30
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x401822
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x55c], edx
mov eax, dword [ebp - 0x55c]
add eax, 1
mov dword [ebp - 0x560], eax
mov ecx, dword [ebp - 0x55c]
mov dl, byte [ecx]
mov byte [ebp - 0x561], dl
add dword [ebp - 0x55c], 1
cmp byte [ebp - 0x561], 0
jne 0x4017d9
mov eax, dword [ebp - 0x55c]
sub eax, dword [ebp - 0x560]
mov dword [ebp - 0x568], eax
je 0x401822
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x530]
push edx
call fcn.004012a0
jmp 0x401838
push 0x554698
push 0x104
lea eax, [ebp - 0x530]
push eax
call fcn.004012a0
push 0x5546a8
push 0x104
lea ecx, [ebp - 0x410]
push ecx
call fcn.004012a0
lea edx, [ebp - 0x410]
mov dword [ebp - 0x56c], edx
mov eax, dword [ebp - 0x56c]
add eax, 1
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp - 0x56c]
mov dl, byte [ecx]
mov byte [ebp - 0x571], dl
add dword [ebp - 0x56c], 1
cmp byte [ebp - 0x571], 0
jne 0x401869
mov eax, dword [ebp - 0x56c]
sub eax, dword [ebp - 0x570]
mov dword [ebp - 0x578], eax
push 4
mov ecx, dword [ebp - 0x578]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x530]
push eax
call fcn.00401930
add esp, 0x10
jmp 0x401917
cmp dword [ebp + 8], 2
jne 0x401917
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x538], ecx
push str.TPLMathing
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x534], 0
je 0x401917
push 0
lea edx, [ebp - 0x538]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x534]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 0x534]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0050663d
mov esp, ebp
pop ebp
ret