Function at 0x445200
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615ef5
mov eax, dword fs:[0]
push eax
mov eax, 0x2064
call fcn.005c98e0
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2044], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2060], ebx
mov dword [ebp - 0x206c], 0
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 0
mov dword [ebp - 0x2028], 0
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4452b7
mov al, byte [eax]
test al, al
je 0x4452b7
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 0
mov dword [ebp - 0x2028], 0
jmp 0x445855
push esi
call fcn.004458b0
mov edi, eax
test edi, edi
je 0x445280
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.005e27b0
add esp, 0xc
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp - 0x2034], eax
test eax, eax
jne 0x4452ff
lea eax, [ebp - 0x2030]
mov ecx, ebx
push eax
call fcn.00445ab0
jmp 0x445855
mov esi, dword [ebp - 0x2044]
mov eax, dword [esi + 0x48]
sub eax, edi
mov dword [ebp - 0x203c], eax
jne 0x445319
mov edi, 1
jmp 0x445329
mov edi, dword [ebp - 0x203c]
mov eax, 0x9e3400
cmp edi, eax
cmova edi, eax
mov dword [ebp - 0x203c], edi
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0
call fcn.004339d0
mov dword [ebp - 0x2020], eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0043c0f0
test al, al
jne 0x4457b2
lea eax, [ebp - 0x2070]
push eax
lea eax, [ebp - 0x2038]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0
push 9
push dword [ebp - 0x2034]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x4457ac
mov ecx, dword [esi + 0x48]
sub ecx, dword [ebp - 0x2004]
mov eax, dword [esi + 0x4c]
sbb eax, 0
test eax, eax
jg 0x4457ac
jl 0x4453b4
cmp ecx, edi
ja 0x4457ac
mov eax, dword [ebp - 0x2038]
lea ebx, [ebp - 0x2010]
mov dword [ebp - 0x2040], ebx
test eax, eax
je 0x445797
nop
cmp word [ebx + 0x18], 1
jne 0x445779
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x2014]
call fcn.00407490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2024]
push 0
push dword [ebx + 0xc]
call fcn.004449c0
add esp, 8
lea eax, [ebp - 0x2014]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2068]
push eax
lea ecx, [ebp - 0x2020]
call fcn.004461d0
mov eax, dword [ebp - 0x2068]
xor edi, edi
mov esi, dword [ebp - 0x2064]
mov dword [ebp - 0x2018], eax
cmp eax, esi
je 0x44545c
nop word [eax + eax]
lea ecx, [ebp - 0x2018]
inc edi
call fcn.00433b30
cmp dword [ebp - 0x2018], esi
jne 0x445440
test edi, edi
jne 0x445621
lea ecx, [ebp - 0x2050]
call fcn.00446140
mov edi, eax
lea eax, [ebp - 0x2014]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2020]
call fcn.00446380
mov esi, eax
cmp esi, dword [ebp - 0x2020]
je 0x44549d
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00446320
test al, al
je 0x4454db
lea eax, [ebp - 0x2014]
push ecx
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
push ecx
lea ecx, [ebp - 0x2020]
call fcn.00446400
push eax
add eax, 0x10
lea ecx, [ebp - 0x2020]
push eax
push esi
lea eax, [ebp - 0x204c]
push eax
call fcn.004464a0
mov esi, dword [ebp - 0x204c]
lea ecx, [esi + 0x14]
cmp ecx, edi
je 0x445504
mov eax, dword [edi]
mov dword [edi], 0
mov esi, dword [ecx]
mov dword [ecx], eax
test esi, esi
je 0x445504
mov ecx, esi
call fcn.00442520
push 0x14
push esi
call fcn.005c969f
add esp, 8
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x2050]
test esi, esi
je 0x445524
mov ecx, esi
call fcn.00442520
push 0x14
push esi
call fcn.005c969f
add esp, 8
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2020]
call fcn.00446380
mov esi, eax
cmp esi, dword [ebp - 0x2020]
je 0x445554
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00446320
test al, al
je 0x445592
lea eax, [ebp - 0x2014]
push ecx
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
push ecx
lea ecx, [ebp - 0x2020]
call fcn.00446400
push eax
add eax, 0x10
lea ecx, [ebp - 0x2020]
push eax
push esi
lea eax, [ebp - 0x2054]
push eax
call fcn.004464a0
mov esi, dword [ebp - 0x2054]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x2014]
push eax
call fcn.00407890
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2020]
call fcn.00446380
mov esi, eax
cmp esi, dword [ebp - 0x2020]
je 0x4455d1
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00446320
test al, al
je 0x44560f
lea eax, [ebp - 0x2014]
push ecx
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
push ecx
lea ecx, [ebp - 0x2020]
call fcn.00446400
push eax
add eax, 0x10
lea ecx, [ebp - 0x2020]
push eax
push esi
lea eax, [ebp - 0x2058]
push eax
call fcn.004464a0
mov esi, dword [ebp - 0x2058]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ecx + 4]
call fcn.00407890
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2020]
call fcn.00446380
mov esi, eax
cmp esi, dword [ebp - 0x2020]
je 0x445651
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00446320
test al, al
je 0x44568f
lea eax, [ebp - 0x2014]
push ecx
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
push ecx
lea ecx, [ebp - 0x2020]
call fcn.00446400
push eax
add eax, 0x10
lea ecx, [ebp - 0x2020]
push eax
push esi
lea eax, [ebp - 0x205c]
push eax
call fcn.004464a0
mov esi, dword [ebp - 0x205c]
mov esi, dword [esi + 0x14]
lea eax, [ebp - 0x2024]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jae 0x4456f3
mov eax, dword [esi + 8]
lea edx, [ebp - 0x2024]
cmp eax, edx
ja 0x4456f3
mov edi, edx
sub edi, eax
sar edi, 2
cmp ecx, dword [esi + 0x10]
jne 0x4456c1
push ecx
lea ecx, [esi + 8]
call fcn.0040cb00
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x2048], ebx
mov byte [ebp - 4], 5
test ebx, ebx
je 0x4456eb
mov ecx, dword [eax + edi*4]
sub ecx, 0x10
call fcn.00407830
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x2040]
jmp 0x44572b
cmp ecx, dword [esi + 0x10]
jne 0x445701
push ecx
lea ecx, [esi + 8]
call fcn.0040cb00
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x2048], edi
mov dword [ebp - 0x2040], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x44572b
mov ecx, dword [ebp - 0x2024]
lea ecx, [ecx - 0x10]
call fcn.00407830
add eax, 0x10
mov dword [edi], eax
add dword [esi + 0xc], 4
or eax, 0xffffffff
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2024]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x445751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x2014]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x445773
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2038]
sub eax, dword [ebx]
mov dword [ebp - 0x2038], eax
add ebx, dword [ebx]
mov dword [ebp - 0x2040], ebx
test eax, eax
jne 0x4453d0
mov esi, dword [ebp - 0x2044]
mov ecx, esi
call fcn.0043c0f0
mov edi, dword [ebp - 0x203c]
test al, al
je 0x445361
mov ebx, dword [ebp - 0x2060]
push dword [ebp - 0x2034]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov esi, dword [ebp - 0x2020]
mov eax, dword [esi]
mov dword [ebp - 0x2034], eax
cmp eax, esi
je 0x4457fa
add eax, 0x14
lea ecx, [ebp - 0x2030]
push eax
call fcn.004459a0
lea ecx, [ebp - 0x2034]
call fcn.00433b30
mov eax, dword [ebp - 0x2034]
cmp eax, esi
jne 0x4457d0
mov esi, dword [ebp - 0x2020]
mov eax, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2020]
mov dword [ebx], eax
mov eax, dword [ebp - 0x202c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2028]
push esi
mov dword [ebx + 8], eax
lea eax, [ebp - 0x2048]
push dword [esi]
mov dword [ebp - 0x2030], 0
push eax
mov dword [ebp - 0x202c], 0
mov dword [ebp - 0x2028], 0
call fcn.00445b00
push dword [ebp - 0x2020]
call fcn.005c8dae
add esp, 4
lea ecx, [ebp - 0x2030]
call fcn.00441fa0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 8