Function at 0x418520
Capabilities:
Clear windows event logs

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418972
sub esp, 0x58
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x60]
cmp dword [0x6313d8], eax
ja 0x41858d
cmp dword [0x6313dc], eax
jbe 0x41858d
lea eax, [0x6307f4]
mov dword [esp], eax
call fcn.00401c20
mov eax, dword [esp + 4]
test eax, eax
je 0x41857a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41857e
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
xor edx, edx
jmp 0x418963
cmp dword [0x6313dc], eax
ja 0x4185cd
cmp dword [0x6313e0], eax
jbe 0x4185cd
lea eax, [0x6307f4]
mov dword [esp], eax
call fcn.00401c20
mov eax, dword [esp + 4]
test eax, eax
je 0x4185ba
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4185be
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ecx
xor edx, edx
jmp 0x4188ec
test eax, eax
jne 0x4185dc
mov eax, dword [0x6571bc]
jmp 0x418879
cmp eax, 1
je 0x4186e7
mov edx, dword [0x6313e0]
cmp eax, edx
jb 0x418610
cmp dword [0x6313e4], eax
jbe 0x418610
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
sub eax, edx
mov dword [esp + 4], eax
call fcn.00418cd0
xor eax, eax
jmp 0x4186f7
mov edx, dword [0x6313e4]
cmp eax, edx
jb 0x418760
cmp dword [0x6313e8], eax
jbe 0x418760
mov ecx, dword [0x6313f0]
mov ebx, dword [0x6313ec]
sub eax, edx
cmp ecx, eax
jbe 0x41875b
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x44], eax
test byte [eax], al
nop
lea ecx, [eax + 0x48]
mov dword [esp], ecx
call fcn.00401c10
mov eax, dword [esp + 4]
cmp eax, 4
je 0x418663
cmp eax, 3
jne 0x418691
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
sete cl
mov edx, dword [eax + 0x60]
test edx, edx
sete dl
and edx, ecx
test dl, dl
je 0x418695
mov ecx, dword [0x6313bc]
mov edx, dword [0x6313c0]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], edx
jmp 0x418695
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea ecx, [0x418980]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.0045def0
lea eax, [0x657ab0]
jmp 0x4186f7
lea eax, [0x5561d8]
mov dword [esp], eax
call fcn.0045def0
xor eax, eax
test eax, eax
je 0x418747
mov ecx, dword [esp + 0x34]
test ecx, ecx
setne dl
mov ebx, dword [esp + 0x38]
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x418747
nop
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00401d00
movzx eax, byte [esp + 0x64]
test al, al
je 0x418747
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00419a20
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
add esp, 0x58
ret
call fcn.0045f460
call fcn.004351d0
mov eax, dword [0x6313e4]
mov dword [esp + 0x30], eax
mov ecx, dword [0x6313e8]
mov dword [esp + 0x2c], ecx
call fcn.004351d0
lea eax, [0x54d779]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00435e00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00435aa0
lea eax, [0x54e1b2]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.00435e00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00435aa0
lea eax, [0x547e6d]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00435e00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00435aa0
lea eax, [0x547e6b]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00435e00
call fcn.00435240
lea eax, [0x54b9b4]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.00433a00
mov dword [esp + 0x24], eax
lea ecx, [eax + 8]
mov dword [esp], ecx
call fcn.00401c10
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 0x10]
mov dword [esp], edx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 4], eax
lea eax, [0x657660]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.0041af40
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
jne 0x41882d
xor eax, eax
jmp 0x4186f7
mov dword [esp + 0x28], edx
mov eax, dword [ecx + edx*4]
mov ebx, dword [eax + 0x70]
mov ebp, dword [eax + 0x74]
mov eax, dword [eax + 0x104]
mov esi, dword [0x6313dc]
mov dword [esp], ebx
sub ebp, ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x60]
sub ebx, esi
mov dword [esp + 0x10], ebx
call fcn.00418b10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
adc ecx, edx
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
cmp eax, edx
jg 0x418884
lea eax, [0x657ab8]
jmp 0x4186f7
mov dword [esp + 0x28], edx
mov eax, dword [ecx + edx*4]
mov ebx, dword [eax + 0x68]
mov ebp, dword [eax + 0x6c]
mov eax, dword [eax + 0xfc]
mov esi, dword [0x6313d8]
mov dword [esp], ebx
sub ebp, ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x60]
sub ebx, esi
mov dword [esp + 0x10], ebx
call fcn.00418b10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
adc edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
cmp eax, edx
jg 0x4188fb
lea eax, [0x657ab8]
jmp 0x4186f7
call fcn.0045e000
jmp fcn.00418520