Function at 0x10148a0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
mov ecx, 8
mov esi, 0x1002738
lea edi, [ebp - 0x550]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x418], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x416]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 4], dx
mov ax, word [0x10015d4]
mov word [ebp - 0x518], ax
push 0xfe
push 0
lea ecx, [ebp - 0x516]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x524], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x554], 1
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x520], 0
jmp 0x101498f
mov edx, dword [ebp - 0x520]
add edx, 1
mov dword [ebp - 0x520], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x520]
cmp ecx, dword [eax + 8]
jge 0x1014add
mov edx, dword [ebp - 0x520]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1014ad8
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1e0], 8
jne 0x10149d0
jmp 0x1014980
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1ec], 0
jne 0x10149de
jmp 0x1014980
mov eax, dword [ebp - 0xc]
add eax, 0x10c
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10149fa
jmp 0x1014980
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0x1e4]
jne 0x1014a69
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x200]
test eax, eax
je 0x1014a37
mov ecx, dword [ebp - 0xc]
add ecx, 0x200
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.01018570
add esp, 8
test eax, eax
jne 0x1014a37
jmp 0x1014980
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x2d0]
test ecx, ecx
je 0x1014a67
mov edx, dword [ebp - 0xc]
add edx, 0x2d0
push edx
mov eax, dword [ebp + 0x14]
add eax, 8
push eax
call fcn.01018520
add esp, 8
test eax, eax
je 0x1014a67
jmp 0x1014980
jmp 0x1014add
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0x1e8]
jne 0x1014ad8
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x200]
test edx, edx
je 0x1014aa6
mov eax, dword [ebp - 0xc]
add eax, 0x200
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.01018570
add esp, 8
test eax, eax
jne 0x1014aa6
jmp 0x1014980
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x2d0]
test eax, eax
je 0x1014ad6
mov ecx, dword [ebp - 0xc]
add ecx, 0x2d0
push ecx
mov edx, dword [ebp + 0x14]
add edx, 8
push edx
call fcn.01018520
add esp, 8
test eax, eax
je 0x1014ad6
jmp 0x1014980
jmp 0x1014add
jmp 0x1014980
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x520]
cmp ecx, dword [eax + 8]
jne 0x1014af2
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x1014b71
mov edx, dword [ebp - 0x520]
mov eax, dword [edx*4 + 0x104d594]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x520]
add ecx, 1
mov dword [ebp - 0x520], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x14]
jne 0x1014b4e
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
push 1
push 4
push 0xc0000143
push 2
push 3
call fcn.010287e0
add esp, 0x20
mov dword [ebp - 0xc], 0
jmp 0x1014b60
cmp dword [ebp - 0x14], 0
je 0x1014b60
cmp dword [ebp - 0x520], 0x200
jl 0x1014af8
cmp dword [0x104e2f8], 0
jne 0x1014b71
mov eax, dword [ebp - 0xc]
jmp 0x1014f8d
cmp dword [ebp + 0xc], 0
je 0x1014b80
cmp dword [0x104f18c], 0
jne 0x1014b88
mov eax, dword [ebp - 0xc]
jmp 0x1014f8d
lea ecx, [ebp - 4]
push ecx
push 0x100
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.01017a50
add esp, 0x10
movzx ecx, word [0x104cd74]
test ecx, ecx
je 0x1014ed9
push 0x104e9e8
push 0x104cd74
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1014ed9
lea edx, [ebp - 0x518]
push edx
push 0x104cd74
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1014ed9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
cmp ecx, dword [0x104ce7c]
jl 0x1014ed9
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1014ed9
push 0x104f190
push 0x104cd74
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1014c39
cmp dword [0x104f188], 0
jne 0x1014c66
push 0x104cd74
push 0x80
push 0x104f190
call fcn.01010390
push 0x104f190
call fcn.01017620
add esp, 4
test eax, eax
jne 0x1014c66
mov eax, dword [ebp - 0xc]
jmp 0x1014f8d
push 0x104cd74
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
push 0xcb
push 0
push 3
call fcn.01028fb0
add esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x34]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x1a]
test edx, edx
je 0x1014d8f
push 0x565
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x1a]
shl edx, 2
push edx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x528], eax
mov eax, dword [ebp - 0x528]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1014d8f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x524], edx
mov eax, dword [ebp - 0x528]
mov ecx, dword [ebp - 0x524]
mov dword [eax], ecx
mov edx, dword [ebp - 0x528]
add edx, 4
mov dword [ebp - 0x528], edx
mov dword [ebp - 0x520], 1
jmp 0x1014d29
mov eax, dword [ebp - 0x520]
add eax, 1
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x1a]
cmp dword [ebp - 0x520], edx
jge 0x1014d8f
mov eax, dword [ebp - 0x524]
movzx ecx, word [eax]
test ecx, ecx
je 0x1014d61
mov edx, dword [ebp - 0x524]
cmp edx, dword [ebp - 0x10]
jae 0x1014d61
mov eax, dword [ebp - 0x524]
add eax, 2
mov dword [ebp - 0x524], eax
jmp 0x1014d38
mov ecx, dword [ebp - 0x524]
add ecx, 2
mov dword [ebp - 0x524], ecx
mov edx, dword [ebp - 0x528]
mov eax, dword [ebp - 0x524]
mov dword [edx], eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
mov dword [ebp - 0x528], ecx
jmp 0x1014d1a
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x1a]
push ecx
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x18]
push ecx
mov edx, dword [0x104f188]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1014de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x554], 0
jmp 0x1014dfc
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x554], 1
cmp dword [ebp - 0x554], 0
jne 0x1014ec2
push 0x400
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x52c]
and ecx, 0xffff
push ecx
call fcn.010425e0
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
push 2
push 0x104cd74
push 2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
push 1
push 6
push 0xc000012c
push 1
push 3
call fcn.010287e0
add esp, 0x28
cmp dword [ebp - 0x52c], 6
jne 0x1014ec2
push 0x104f190
push 2
push 2
push 0x4000013a
push 4
push 3
call fcn.010287e0
add esp, 0x18
push 0x104f190
call fcn.01017620
add esp, 4
test eax, eax
je 0x1014ec2
push 0x104f190
push 2
push 2
push 0x4000013b
push 4
push 3
call fcn.010287e0
add esp, 0x18
cmp dword [ebp - 0x51c], 0
jne 0x1014ec2
mov dword [ebp - 0x51c], 1
jmp 0x1014d8f
cmp dword [ebp - 8], 0
je 0x1014ed4
mov edx, dword [ebp - 8]
push edx
call fcn.01011d50
add esp, 4
jmp 0x1014f8a
movzx eax, word [0x104cd74]
test eax, eax
je 0x1014f37
lea ecx, [ebp - 0x518]
push ecx
push 0x104cd74
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1014f37
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [0x104ce7c]
jl 0x1014f37
lea ecx, [ebp - 0x518]
push ecx
push 2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
and eax, 0xffff
push eax
push 1
push 4
push 0xc000013f
push 1
push 3
call fcn.010287e0
add esp, 0x20
jmp 0x1014f8a
movzx ecx, word [0x104cd74]
test ecx, ecx
je 0x1014f8a
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1014f8a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
cmp edx, dword [0x104ce7c]
jl 0x1014f8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
push 1
push 2
push 0xc0000140
push 1
push 3
call fcn.010287e0
add esp, 0x18
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret