Function at 0x403130
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10ac
call fcn.00406a10
push ebx
push ebp
push esi
push edi
call dword [0x41d26c]
xor edi, edi
mov dword [esp + 0x1c], eax
cmp word [0x4288fc], di
je 0x4031c6
mov eax, dword [0x428900]
push 0xffffffffffffffff
push eax
call dword [0x41d248]
mov ebp, dword [esp + 0x10c0]
cmp ebp, edi
je 0x4031b9
cmp dword [ebp + 4], edi
je 0x4031b9
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4031b9
mov ecx, dword [esp + 0x10c4]
cmp ecx, eax
jg 0x4031b9
cmp dword [0x42890c], edi
jne 0x4031b9
cmp word [0x4288fc], di
je 0x4031b9
mov eax, dword [esp + 0x10cc]
mov edx, 1
cmp eax, edi
mov dword [0x42890c], edx
mov byte [esp + 0x8a8], 0
jne 0x4031d1
mov dword [0x42890c], edi
mov ecx, dword [0x428900]
push ecx
call dword [0x41d228]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10ac
ret
mov eax, dword [ebp + 4]
test al, 4
jne 0x4031e5
test al, 2
je 0x4031e1
cmp ecx, 4
jge 0x4031e5
xor ebx, ebx
jmp 0x4031e7
mov ebx, edx
test al, 2
je 0x403201
cmp ecx, 4
jl 0x403201
mov dword [esp + 0x18], edx
mov byte [esp + 0x94], 0
jmp 0x40329f
cmp ebx, edi
mov dword [esp + 0x18], edi
mov esi, 0x423514
jne 0x403213
mov esi, 0x426de8
call fcn.00413a72
push eax
push esi
lea edx, [esp + 0x9c]
push str._s_05u
push edx
call fcn.00407214
mov eax, dword [0x4233e0]
add esp, 0x10
cmp eax, edi
je 0x403265
call dword [0x41d22c]
push eax
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.:_06u
lea eax, [esp + ecx + 0x9c]
push eax
call fcn.00407214
add esp, 0xc
test ebx, ebx
mov edi, 0x423500
jne 0x403273
mov edi, 0x4234fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x41d238]
cmp dword [esp + 0x10c8], 0xffffffff
je 0x403325
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x814
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x94]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x98]
mov ecx, dword [esp + 0x10d0]
push eax
push ecx
push ebp
call fcn.00402f90
mov edx, dword [esp + 0x10e0]
lea eax, [esp + 0xa4]
push edx
push eax
lea ecx, [esp + 0x8c0]
push 0x813
push ecx
call fcn.004069ba
add esp, 0x20
test eax, eax
jge 0x403381
mov byte [esp + 0x10bb], 0
jmp 0x403381
mov edi, dword [esp + 0x10cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x8a8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebp + 4], 1
je 0x4033b6
lea ecx, [esp + 0x94]
test ecx, ecx
je 0x4033b6
lea edx, [esp + 0x8a8]
push edx
push 0x4234f8
push 0x423fa0
call fcn.00407078
push 0x423fa0
call fcn.00406f12
add esp, 0x10
mov ecx, dword [esp + 0x10c4]
xor eax, eax
cmp ecx, 4
sete al
test ebx, ebx
mov esi, eax
je 0x40362f
lea ecx, [esp + 0x94]
test ecx, ecx
je 0x40362f
mov eax, dword [ebp + esi*4 + 0x318]
test eax, eax
je 0x40362f
push 0
call fcn.004068de
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x30]
push 0x1a
push eax
call fcn.00402f40
mov ecx, dword [ebp + esi*4 + 0x318]
push 2
push 0
push ecx
mov ebx, eax
call fcn.00406e59
mov edx, dword [ebp + esi*4 + 0x318]
push edx
call fcn.00406cd6
mov edi, eax
mov eax, dword [ebp + 0x320]
mov ecx, edi
add esp, 0x20
sub ecx, eax
test ecx, ecx
jg 0x403455
cmp dword [ebp + 0x328], 2
jne 0x4035ca
cmp ebx, dword [ebp + 0x338]
je 0x4035ca
mov ecx, dword [ebp + 0x328]
dec ecx
je 0x4034c6
dec ecx
je 0x4034b7
dec ecx
jne 0x4035ca
mov edx, esi
mov ecx, dword [ebp + esi*4 + 0x318]
shl edx, 6
add edx, esi
push eax
lea eax, [ebp + edx*4 + 0xc]
push eax
push str.Log_file__s_exceeds_maximum_size__d_bytes__logging_stopped._n
push ecx
call fcn.00407078
mov edx, dword [ebp + esi*4 + 0x318]
push edx
call fcn.00406f12
mov eax, dword [0x428900]
add esp, 0x14
mov word [0x4288fc], 0
push eax
call dword [0x41d228]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10ac
ret
push ebx
push ebp
call fcn.004039f0
add esp, 8
jmp 0x4035ca
mov ecx, dword [ebp + 0x324]
push ecx
call fcn.00405900
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x4034f7
mov edx, dword [0x428900]
push edx
call dword [0x41d228]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10ac
ret
mov eax, esi
mov dword [ebx], 0
mov ecx, dword [ebp + esi*4 + 0x318]
shl eax, 6
add eax, esi
push ecx
push 0x4234b4
lea eax, [ebp + eax*4 + 0xc]
push eax
mov dword [esp + 0x2c], eax
call fcn.00406c8f
mov dword [ebp + esi*4 + 0x318], eax
mov ecx, dword [ebp + 0x324]
sub edi, ecx
push 0
push edi
push eax
call fcn.00406e59
mov edx, dword [ebp + esi*4 + 0x318]
mov eax, dword [ebp + 0x324]
push edx
push eax
push 1
push ebx
call fcn.00406b78
mov edi, eax
add esp, 0x28
xor eax, eax
test edi, edi
mov dword [esp + 0x10], eax
jbe 0x40358f
mov cl, byte [ebx]
cmp cl, 0xd
je 0x403571
cmp cl, 0xa
je 0x403571
inc ebx
inc eax
cmp eax, edi
jb 0x40355d
jmp 0x40358b
cmp eax, edi
mov dword [esp + 0x10], eax
jae 0x40358f
mov cl, byte [ebx]
cmp cl, 0xd
je 0x403585
cmp cl, 0xa
jne 0x40358b
inc ebx
inc eax
cmp eax, edi
jb 0x403579
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + esi*4 + 0x318]
mov edx, dword [esp + 0x20]
push ecx
push 0x4234b0
push edx
call fcn.00406c8f
mov edx, dword [esp + 0x1c]
push eax
sub edi, edx
mov dword [ebp + esi*4 + 0x318], eax
push edi
push 1
push ebx
call fcn.00406a3f
mov eax, dword [esp + 0x30]
push eax
call fcn.00404ca7
add esp, 0x20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4035f1
mov edx, dword [ebp + esi*4 + 0x318]
lea ecx, [esp + 0x8a8]
push ecx
push 0x4234f8
push edx
call fcn.00407078
add esp, 0xc
jmp 0x40361f
lea eax, [esp + 0x44]
push 0x50
push eax
call fcn.00402f20
mov eax, dword [ebp + esi*4 + 0x318]
lea ecx, [esp + 0x8b0]
lea edx, [esp + 0x4c]
push ecx
push edx
push str._.19s_s_n
push eax
call fcn.00407078
add esp, 0x18
mov ecx, dword [ebp + esi*4 + 0x318]
push ecx
call fcn.00406f12
add esp, 4
test byte [ebp + 4], 2
je 0x403690
mov ecx, dword [esp + 0x10c4]
xor eax, eax
lea edx, [esp + 0x8a8]
dec ecx
mov dword [esp + 0x14], edx
je 0x403660
dec ecx
je 0x403659
dec ecx
jne 0x403665
mov eax, 4
jmp 0x403665
mov eax, 2
jmp 0x403665
mov eax, 1
mov ebp, dword [ebp + 0x32c]
test ebp, ebp
je 0x403690
test ax, ax
je 0x403690
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 1
push 0
push 0x40000001
push 0
push eax
push ebp
call dword [0x41d008]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x41d238]
mov edx, dword [0x42890c]
mov eax, dword [0x428900]
dec edx
push eax
mov dword [0x42890c], edx
call dword [0x41d228]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10ac
ret