Function at 0x4a6e50
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ff88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], vtable.CBuffer.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
cmp dword [esi + 8], 0
jle 0x4a714f
mov edx, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 4]
xor ebx, ebx
cmp dword [edi + eax + 8], ebx
jle 0x4a701c
cmp dword [ecx + 0xd0], 0
je 0x4a6f40
mov ecx, dword [ecx + 0xcc]
lea eax, [ebx + 1]
cmp dword [ecx + 8], eax
jle 0x4a6f40
mov eax, dword [ecx + 4]
mov edi, dword [eax + ebx*4 + 4]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6ef3
sub ecx, edx
sar ecx, 1
lea esi, [ecx + ecx]
test esi, esi
je 0x4a6f3d
push esi
lea ecx, [ebp - 0x30]
call fcn.004d2430
test eax, eax
je 0x4a6f3d
push esi
push edi
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov eax, ecx
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
add eax, esi
cmp eax, dword [ebp - 0x24]
ja 0x4a6f40
add ecx, esi
mov dword [ebp - 0x20], ecx
jmp 0x4a6f40
mov edi, dword [ebp - 0x10]
push 4
lea ecx, [ebp - 0x30]
call fcn.004d2430
test eax, eax
je 0x4a6f71
mov ecx, dword [0x58a1f8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov ecx, edx
mov eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
add eax, 4
add eax, ecx
cmp eax, dword [ebp - 0x24]
ja 0x4a6f71
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 4]
mov edi, dword [eax + ebx*4]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6f83
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
test esi, esi
je 0x4a6fc8
push esi
lea ecx, [ebp - 0x30]
call fcn.004d2430
test eax, eax
je 0x4a6fc8
push esi
push edi
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov eax, ecx
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
add eax, esi
cmp eax, dword [ebp - 0x24]
ja 0x4a6fc8
add ecx, esi
mov dword [ebp - 0x20], ecx
push 4
lea ecx, [ebp - 0x30]
call fcn.004d2430
test eax, eax
je 0x4a6ffd
mov ecx, dword [0x576628]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov ecx, edx
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
add eax, 4
sub ecx, esi
add eax, ecx
cmp eax, dword [ebp - 0x24]
ja 0x4a7003
add edx, 4
mov dword [ebp - 0x20], edx
jmp 0x4a7003
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
inc ebx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp ebx, dword [edi + eax + 8]
jl 0x4a6ed0
jmp 0x4a701f
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp esi, eax
je 0x4a703f
test edx, edx
je 0x4a703c
push edx
push eax
push esi
call dword [sym.imp.MSVCR120.dll_memmove]
mov edx, dword [ebp - 0x20]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
lea eax, [edx + 2]
cmp eax, 2
jb 0x4a70c3
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jbe 0x4a708d
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
jae 0x4a705e
mov edi, eax
add edi, 0xfff
and edi, 0xfffff000
cmp edi, eax
jae 0x4a7070
mov edi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push edi
push esi
call dword [eax + 4]
mov esi, eax
test esi, esi
je 0x4a70bd
mov dword [ebp - 0x2c], esi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
lea ecx, [edx + esi]
test ecx, ecx
je 0x4a70c0
mov ax, word [0x58a278]
mov edi, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 0x20]
mov ecx, edx
mov eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
add eax, 2
add eax, ecx
cmp eax, dword [ebp - 0x24]
ja 0x4a70c3
add edx, 2
mov dword [ebp - 0x20], edx
jmp 0x4a70c3
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
neg edx
sbb edx, edx
and edx, dword [ebp - 0x28]
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + edi + 0x14]
cmp eax, 0xa0000000
jb 0x4a70e5
mov ecx, 1
jmp 0x4a7104
cmp eax, 0x80000000
jb 0x4a70f3
mov ecx, 1
jmp 0x4a7104
mov ecx, 2
cmp eax, 0x40000000
jae 0x4a7104
mov ecx, 4
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push 0
push 1
push 0
movzx eax, word [eax + 0xdc]
push 0x40000105
push eax
push ecx
push dword [0x5c6b90]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
je 0x4a718a
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, dword [ebp - 0x14]
inc eax
add edi, 0x1c
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
cmp eax, dword [esi + 8]
jl 0x4a6ec1
mov esi, dword [0x5c6d98]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.CBuffer.0
test eax, eax
je 0x4a7174
push eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0x16
jmp 0x4a7155