Function at 0x401000
Capabilities:
Access the windows event log
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x54]
push edi
push 0x444070
push eax
push ebx
call fcn.00409430
xor edi, edi
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x401339
push ebp
push esi
push edi
push edi
lea ecx, [esp + 0x44]
call fcn.00401700
push edi
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x43a2b0
mov dword [esp + 0x50], edi
call fcn.00401780
push edi
push edi
lea ecx, [esp + 0x24]
call fcn.00401e30
push edi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x43a2a8
mov dword [esp + 0x30], edi
call fcn.00416710
push edi
push edi
lea ecx, [esp + 0x34]
call fcn.00401df0
push edi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x43a2a0
mov dword [esp + 0x40], edi
call fcn.004019d0
mov esi, dword [esp + 0x74]
cmp esi, edi
je 0x401202
push edi
push edi
lea ecx, [esp + 0x54]
call fcn.00401e10
push edi
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x43a298
mov dword [esp + 0x60], edi
call fcn.00416710
mov ecx, dword [ebx]
push esi
push ebx
call dword [ecx + 0x2ac]
cmp eax, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edi
jle 0x4011e4
jmp 0x4010e2
mov esi, dword [esp + 0x74]
xor edi, edi
mov eax, dword [esp + 0x60]
mov edx, dword [ebx]
push eax
push esi
push ebx
call dword [edx + 0x2b4]
mov ecx, dword [ebx]
mov ebp, eax
push edi
push ebp
push ebx
call dword [ecx + 0x294]
mov edi, eax
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x44]
push 1
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
call fcn.00416710
mov ecx, dword [ebx]
push ebp
push ebx
call dword [ecx + 0x290]
mov esi, eax
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x44]
push esi
push edx
call fcn.00401e50
lea ecx, [esi + esi]
mov esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
and ecx, 3
mov dword [esp + 0x14], 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401780
mov edx, dword [ebx]
mov eax, dword [esp + 0x14]
push eax
push ebp
push ebx
call dword [edx + 0x298]
mov ecx, dword [ebx]
push ebp
push ebx
call dword [ecx + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x60], eax
jl 0x4010dc
mov eax, ecx
test eax, eax
jle 0x4011e2
xor esi, esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x40]
call dword [eax + 4]
push 1
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
lea edi, [eax + edx*2]
call fcn.0040b530
mov dword [eax], edi
inc esi
cmp esi, dword [esp + 0x64]
jl 0x401197
mov edx, dword [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x24]
xor esi, esi
call fcn.0040b530
mov dword [eax], esi
xor edi, edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x43a298
call fcn.00401f00
cmp eax, edi
je 0x401202
push eax
call fcn.0041a070
add esp, 4
mov ebp, dword [esp + 0x78]
cmp ebp, edi
je 0x401269
mov eax, dword [ebx]
push ebp
push ebx
call dword [eax + 0x2ac]
mov ecx, dword [ebx]
lea edx, [esp + 0x74]
push edx
push ebp
push ebx
mov esi, eax
mov byte [esp + 0x80], 1
call dword [ecx + 0x2e0]
mov edi, eax
push esi
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x68], edi
call fcn.00401eb0
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx]
push ecx
push ebp
push ebx
call dword [eax + 0x300]
xor edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
push esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push edi
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop esi
mov dword [esp + 0x28], 0x43a2a0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
pop ebp
je 0x4012df
push eax
call fcn.0041a070
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0x43a294
cmp eax, edi
mov dword [esp + 0x14], 0x43a2a8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x40130c
push eax
call fcn.0041a070
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], 0x43a290
cmp eax, edi
mov dword [esp + 0x34], 0x43a2b0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
je 0x401339
push eax
call fcn.0041a070
add esp, 4
pop edi
pop ebx
add esp, 0x4c
ret 0x1c