Function at 0x47ffb5
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59714c
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x694240]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x694240]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], eax
jb 0x480010
mov esi, dword [esi]
push ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x18], esi
call fcn.00481d45
mov esi, eax
and dword [esp + 0x178], 0
cmp byte [esi + 0x28], 0
je 0x480038
mov ecx, esi
call fcn.004847ee
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004852dd
inc dword [esi + 0x20]
cmp dword [esi + 0x18], 0
mov edi, dword [esi + 0x20]
je 0x480078
cmp edi, dword [esi + 0x24]
jge 0x480078
mov ebx, dword [esi + 0xc]
xor eax, eax
mov edx, edi
mov ecx, edi
shr edx, 5
and ecx, 0x1f
inc eax
shl eax, cl
test dword [ebx + edx*4], eax
je 0x480074
inc edi
mov dword [esi + 0x20], edi
cmp edi, dword [esi + 0x24]
jl 0x480057
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00481f2f
pop ecx
mov ecx, eax
call fcn.00481de8
mov byte [esp + 0x178], 2
lea ecx, [esp + 0xcc]
call fcn.00480310
lea esi, [ebx + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4800b3
mov eax, dword [esi]
jmp 0x4800b5
mov eax, esi
cmp dword [esp + 0x38], 8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
inc ecx
sub eax, edi
je 0x4800e6
dec eax
je 0x4800e1
dec eax
jne 0x4800e9
push 2
jmp 0x4800e3
push 4
pop ecx
jmp 0x4800e9
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x28], edi
je 0x48010c
push edi
lea eax, [esp + 0x20]
push eax
push edi
push 2
push edi
push edi
push edi
push ecx
push dword [ebx + 0x28]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
xor ebx, ebx
inc ebx
jmp 0x480229
lea eax, [esp + 0x9c]
push eax
call fcn.00480262
mov byte [esp + 0x178], 3
mov edx, esi
push eax
lea ecx, [esp + 0x70]
call fcn.0047aaf2
pop ecx
mov byte [esp + 0x178], 4
lea ecx, [esp + 0x24]
push ecx
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0047abca
mov esi, eax
mov byte [esp + 0x17c], 5
lea ecx, [esp + 0x88]
mov dword [esp], 0x5eb46c
call fcn.00479014
mov byte [esp + 0x178], 6
mov edx, str.P109RWGDW9KA6GRPTW05183FTEE7792T570Y2J4YBQR9IDI99CEHRC0VT3358841UA6DNVZCQJ3ORUK4X1LXD23BSDPK7TUKK97J386T5FBYIHU6D0HZRTHQZK3MDS5IC5Z8LCYGQEXEM4GI
push eax
lea ecx, [esp + 0xb8]
call fcn.0048177b
mov byte [esp + 0x17c], 7
mov edx, eax
lea ecx, [esp + 0x40]
mov dword [esp], str.N40XNRVH88U556R7MXZA4LE3IF81GJ
call fcn.004817bf
mov byte [esp + 0x17c], 8
mov edx, eax
push ecx
push esi
call fcn.004ae7d0
add esp, 0xc
mov byte [esp + 0x178], 7
xor ebx, ebx
lea ecx, [esp + 0x3c]
push edi
inc ebx
push ebx
call fcn.0047997f
mov byte [esp + 0x178], 6
lea ecx, [esp + 0xb4]
push edi
push ebx
call fcn.0047997f
mov byte [esp + 0x178], 5
lea ecx, [esp + 0x84]
push edi
push ebx
call fcn.0047997f
mov byte [esp + 0x178], 4
lea ecx, [esp + 0x54]
push edi
push ebx
call fcn.0047997f
mov byte [esp + 0x178], 3
lea ecx, [esp + 0x6c]
push edi
push ebx
call fcn.0047997f
mov byte [esp + 0x178], 2
lea ecx, [esp + 0x9c]
push edi
push ebx
call fcn.0047997f
or dword [esp + 0x178], 0xffffffff
lea ecx, [esp + 0x24]
push edi
push ebx
call fcn.0047997f
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.005712ac
mov esp, ebp
pop ebp
ret 8