Function at 0x405080
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4179ce
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x420008]
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 - 0x84], ecx
mov edi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp + 0x1c]
push dword [edi]
mov dword [ebp - 0x18], 0x20000
push dword [ebx]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
mov dword [ebp - 0x68], eax
call fcn.004021f0
add esp, 0x10
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
lea esi, [eax + 1]
xor eax, eax
push esi
mov word [ebp - 0x80], ax
call fcn.00402a90
push dword [edi]
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
push dword [ebx]
cmovae eax, dword [ebp - 0x80]
push dword [ebp - 0x68]
push esi
push eax
call fcn.004021f0
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
dec eax
add esp, 0x14
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x70], eax
cmovae ecx, dword [ebp - 0x80]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp + 0x14]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], 3
cmovae eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str._s:__s
mov dword [eax + 4], 6
call fcn.00403150
add esp, 0xc
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4051c6
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4051bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40534a
push edx
push ecx
call fcn.00405a94
add esp, 8
mov ebx, dword [ebp - 0x84]
xor eax, eax
cmp dword [ebp - 0x34], 8
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push 0
push 0x20000
push 2
push dword [ebx + 4]
mov dword [ebp - 0x70], 0
push dword [ebx]
mov dword [ebp - 0x6c], 7
call dword [sym.imp.ADVAPI32.dll_EventWriteString]
cmp dword [ebx + 0x18], 0
je 0x4052f6
lea eax, [ebp - 0x18]
mov ecx, 0x421428
push eax
call fcn.004030f0
push eax
lea ecx, [ebp - 0x60]
call fcn.004029c0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
sub esp, 8
lea edx, [ebp - 0x60]
mov eax, esp
lea ecx, [ebp - 0x30]
mov dword [eax], str.__s_:__s
mov dword [eax + 4], 8
call fcn.004031e0
add esp, 0xc
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4052ac
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40534f
push edx
push ecx
call fcn.00405a94
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x4052f6
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40534f
push edx
push ecx
call fcn.00405a94
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40532c
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405354
push edx
push ecx
call fcn.00405a94
add esp, 8
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.004056ed
mov esp, ebp
pop ebp
ret 0x24
call fcn.0040a68d
call fcn.0040a68d
call fcn.0040a68d
int3