Function at 0x42b230
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d143
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x438ab4]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
xor eax, eax
mov word [ebp - 0x10], ax
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x84]
call fcn.00401da0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x42b2d9
mov byte [ebp - 0x71], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401f30
mov al, byte [ebp - 0x71]
jmp 0x42b4c6
lea ecx, [ebp + 0xc]
call fcn.0042b800
movzx edx, al
test edx, edx
jne 0x42b3e5
push 0x432873
lea ecx, [ebp - 0x64]
call fcn.00401d00
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00402150
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x68], 0
jmp 0x42b31a
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x44]
jae 0x42b3d9
cmp dword [ebp - 0x68], 0xa
jae 0x42b3d9
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042b820
mov ecx, eax
call fcn.00401db0
add eax, 1
push eax
call fcn.00405245
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax*4 - 0x3c], ecx
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042b820
mov ecx, eax
call fcn.00401db0
add eax, 1
push eax
push 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + eax*4 - 0x3c]
push ecx
call fcn.004108c0
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042b820
mov ecx, eax
call fcn.00401db0
push eax
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp + 0xc]
call fcn.0042b820
mov ecx, eax
call fcn.00401da0
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0042b820
mov ecx, eax
call fcn.00401db0
add eax, 1
push eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + edx*4 - 0x3c]
push eax
call fcn.00412e2b
add esp, 0x10
jmp 0x42b311
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401d70
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0
je 0x42b40b
cmp dword [ebp - 0x88], 1
je 0x42b416
cmp dword [ebp - 0x88], 2
je 0x42b421
jmp 0x42b42c
mov edx, 1
mov word [ebp - 0x10], dx
jmp 0x42b435
mov eax, 4
mov word [ebp - 0x10], ax
jmp 0x42b435
mov ecx, 2
mov word [ebp - 0x10], cx
jmp 0x42b435
mov edx, 1
mov word [ebp - 0x10], dx
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
movzx ecx, word [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x42b46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x70], 0
jmp 0x42b47c
mov edx, dword [ebp - 0x70]
add edx, 1
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0xa
jge 0x42b4a4
mov eax, dword [ebp - 0x70]
cmp dword [ebp + eax*4 - 0x3c], 0
je 0x42b4a2
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp + ecx*4 - 0x3c]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00405250
add esp, 4
jmp 0x42b473
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dl, byte [ebp - 0x11]
mov byte [ebp - 0x7d], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401f30
mov al, byte [ebp - 0x7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0040f653
mov esp, ebp
pop ebp
ret 0x20