Function at 0x49f1fc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x49f455
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49f429
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.0041c68c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004053ec
push eax
call sub.advapi32.dll_OpenEventLogA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49f278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f437
xor eax, eax
push ebp
push 0x49f418
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x1000
call fcn.00402b2c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49f2ab
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f437
xor eax, eax
push ebp
push 0x49f3fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x49f3be
cmp dword [ebp - 0x20], 0
jbe 0x49f3b8
mov eax, dword [ebp - 0xc]
call fcn.0049eef0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x18]
mov edx, dword [ebp - 0x28]
mov word [edx + 0x24], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.00493718
mov eax, dword [ebp - 0x28]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebp - 0x28]
add eax, 0x18
mov edx, dword [ebp - 0x18]
add edx, 0x38
call fcn.00405108
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x1c]
mov edx, dword [ebp - 0x28]
mov word [edx + 0x26], ax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
call fcn.004051ec
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x38
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add eax, 1
adc edx, 0
mov edx, eax
mov eax, dword [ebp - 0x28]
add eax, 0x1c
call fcn.00405108
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x28], 0
jbe 0x49f388
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x2c]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049f00c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
add eax, 0x2c
call fcn.00404f64
jmp 0x49f39b
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov edx, dword [0x4f8704]
mov edx, dword [edx]
call fcn.00404f64
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 0
ja 0x49f2ce
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
push 0
push 9
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ReadEventLogA
test eax, eax
jne 0x49f2c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f401
mov eax, dword [ebp - 0x1c]
call fcn.00402b5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f45c
lea eax, [ebp - 0x2c]
call fcn.00404f10
lea eax, [ebp - 8]
call fcn.00404f10
ret