Function at 0x48f2d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
lea ebp, [esp - 0x401c]
mov eax, 0x401c
call fcn.004c79d0
push 0xffffffffffffffff
push 0x4d43d5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp + 0x4018], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x4024]
mov ebx, dword [ebp + 0x402c]
mov esi, dword [ebp + 0x403c]
mov edi, dword [ebp + 0x4040]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x4038]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x4044]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x4048]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], edi
cmp ax, word [0x509620]
jne 0x48f379
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4e9cb4
push 0x509620
call fcn.0048f130
add esp, 0xc
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x44], eax
mov ecx, 1
mov dword [ebp - 0x10], 0
test eax, eax
je 0x48f61f
test ebx, ebx
je 0x48f3b8
mov ecx, dword [ebp + 0x4030]
test ecx, ecx
je 0x48f3b8
cmp byte [ebx], 0
jne 0x48f41c
cmp ecx, 1
je 0x48f3b8
cmp ecx, 0xffffffff
jne 0x48f42f
xor eax, eax
mov word [ebp + 0x18], ax
mov ebx, 0x3ff
test esi, esi
je 0x48f459
cmp byte [esi], 0
je 0x48f459
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f3e0
sub ecx, edx
lea eax, [ebp + 0x3818]
push 0x3ff
cmp ecx, ebx
push eax
cmova ecx, ebx
push ecx
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [ebp + eax*2 + 0x3818], cx
setg bl
jmp 0x48f464
cmp ecx, 0xffffffff
jne 0x48f42f
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f426
sub ecx, edx
mov eax, 0xfff
push eax
cmp ecx, eax
cmova ecx, eax
lea eax, [ebp + 0x18]
push eax
push ecx
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebp + eax*2 + 0x18], cx
jmp 0x48f3be
xor eax, eax
xor ebx, ebx
mov word [ebp + 0x3818], ax
test edi, edi
je 0x48f4b3
cmp byte [edi], 0
je 0x48f4b3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f472
sub ecx, edx
mov eax, 0x3ff
push eax
cmp ecx, 0x3ff
cmova ecx, eax
lea eax, [ebp + 0x3018]
push eax
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
xor ecx, ecx
test eax, eax
mov word [ebp + eax*2 + 0x3018], cx
setg al
jmp 0x48f4c4
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov word [ebp + 0x3018], ax
xor al, al
mov esi, dword [ebp - 0x3c]
test al, al
mov ecx, 2
cmovne ebx, ecx
test esi, esi
je 0x48f51b
cmp byte [esi], 0
je 0x48f51b
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f4e0
sub ecx, edx
mov eax, 0x3ff
push eax
cmp ecx, 0x3ff
cmova ecx, eax
lea eax, [ebp + 0x2818]
push eax
push ecx
push esi
push 0
push 0xfde9
call edi
xor ecx, ecx
test eax, eax
mov word [ebp + eax*2 + 0x2818], cx
setg al
jmp 0x48f526
xor eax, eax
mov word [ebp + 0x2818], ax
xor al, al
mov esi, dword [ebp - 0x40]
test al, al
mov ecx, 3
cmovne ebx, ecx
test esi, esi
je 0x48f57c
cmp byte [esi], 0
je 0x48f57c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f541
sub ecx, edx
mov eax, 0x3ff
push eax
cmp ecx, 0x3ff
cmova ecx, eax
lea eax, [ebp + 0x2018]
push eax
push ecx
push esi
push 0
push 0xfde9
call edi
xor ecx, ecx
test eax, eax
mov word [ebp + eax*2 + 0x2018], cx
setg al
jmp 0x48f587
xor eax, eax
mov word [ebp + 0x2018], ax
xor al, al
test al, al
mov dword [ebp + 4], 0x509620
lea eax, [ebp + 0x18]
mov ecx, 4
mov dword [ebp], eax
cmovne ebx, ecx
mov ecx, dword [ebp + 0x4034]
lea eax, [ebp + 0x3818]
mov dword [ebp + 8], eax
lea eax, [ebp + 0x3018]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x2818]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x2018]
mov dword [ebp + 0x14], eax
mov eax, 1
mov dword [ebp - 0x10], ebx
add ebx, 2
cmp ax, cx
jne 0x48f5df
mov eax, 0xc0000000
jmp 0x48f5f4
mov esi, 2
mov eax, 0x40000000
cmp si, cx
mov edx, closesocket
cmove eax, edx
add eax, dword [ebp - 0x28]
lea edx, [ebp]
mov esi, dword [ebp - 0x44]
push 0
push edx
push 0
push ebx
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ebx, dword [ebp - 0x18]
mov ecx, 1
or esi, 0xffffffff
lea eax, [ebp - 0x1c]
push eax
cmp cx, word [ebp + 0x4034]
jne 0x48f6fc
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x48f670
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push str._s_ERROR__d_:__s_n
push 2
call fcn.0048ed00
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f69d
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f69d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x48f69d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x48e920
push ebx
push 0x4e2648
push dword [ebp - 0x28]
push str.:_event_code
push dword [ebp - 0x2c]
push str.ERROR_IN
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.0048e700
add esp, 8
push eax
call fcn.0048e700
add esp, 8
push eax
call fcn.0048e700
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.0048e700
add esp, 8
push eax
call fcn.0048e700
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x48f757
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x48f72a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push str._s_EVENT__d_:__s_n
push 1
call fcn.0048ed00
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f757
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f757
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x48f757
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ebx, 0x4dbc50
test eax, eax
je 0x48f7ca
mov ecx, dword [ebp - 0x20]
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x48f79a
lea eax, [ebp - 0x20]
push eax
push str._____s_n
push 1
call fcn.0048eb40
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f7c7
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f7c7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x48f7c7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x48f836
mov ecx, dword [ebp - 0x14]
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x48f806
lea eax, [ebp - 0x14]
push eax
push str._____s_n
push 1
call fcn.0048eb40
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f833
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f833
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x48f833
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp eax, 2
jbe 0x48f8a2
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x48f872
lea eax, [ebp - 0x14]
push eax
push str._____s_n
push 1
call fcn.0048eb40
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48f89f
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f89f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x48f89f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp eax, 3
jbe 0x48f901
mov eax, dword [ebp - 0x40]
test eax, eax
cmovne ebx, eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x48f8dc
lea eax, [ebp - 0x14]
push eax
push str._____s_n
push 1
call fcn.0048eb40
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x48f901
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x48f901
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x48f901
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4018]
xor ecx, ebp
call fcn.004c75e8
lea esp, [ebp + 0x401c]
pop ebp
ret