Function at 0x10147b2
Capabilities:
Accept command line arguments
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018153
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1908
call fcn.010174f0
mov eax, dword [0x101b078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1824], eax
and dword [ebp - 4], 0
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0xff
push 0xb
push 0x8b5
mov ebx, 0x1006a98
push ebx
mov edi, 0x100617c
push edi
mov esi, 0x1006118
push esi
call fcn.01012994
lea ecx, [ebp - 0x1880]
call fcn.01013ba7
xor eax, eax
push 0x3c
push eax
mov dword [ebp - 0x1830], eax
mov dword [ebp - 0x1834], eax
mov dword [ebp - 0x1918], eax
lea eax, [ebp - 0x1914]
push eax
mov byte [ebp - 4], 2
call sub.msvcrt.dll_memset
push 0x1000
lea eax, [ebp - 0x1817]
push 0
push eax
mov byte [ebp - 0x1818], 0
call sub.msvcrt.dll_memset
movzx eax, word [ebp + 0x64]
add esp, 0x18
inc eax
cmp eax, 0xf
jge 0x1014bc0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x1824]
add esp, 0xc
push 0x400
lea eax, [ebp - 0x814]
push eax
call fcn.01012ff6
lea eax, [ebp - 0x814]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10148c2
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1828], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10148df
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x181c], eax
mov eax, dword [ebp - 0x1824]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1820], eax
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x1828]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 3
push eax
mov dword [ebp - 0x182c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov eax, dword [ebp - 0x181c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x182c]
lea eax, [ebp - 0x1818]
push dword [ebp - 0x1820]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0x1006a40
push 0x1000
push eax
call fcn.01012c7a
lea eax, [ebp - 0x1818]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1014987
sub eax, ecx
and dword [ebp - 0x181c], 0
mov dword [ebp - 0x1820], eax
mov eax, dword [ebp + 0x64]
lea ecx, [eax + 1]
movzx ecx, cx
mov dword [ebp - 0x182c], ecx
cmp word [ebp - 0x181c], ax
jae 0x10149d2
movzx ecx, word [ebp - 0x181c]
shl ecx, 2
mov edx, dword [ebp + ecx + 0x28]
inc dword [ebp - 0x181c]
mov dword [ebp + ecx - 0x1918], edx
jmp 0x10149ac
and dword [ebp - 0x1828], 0
mov ecx, dword [ebp - 0x1824]
mov byte [ebp - 4], 3
call fcn.010141f6
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x10149f7
mov eax, 0x1004754
movzx ecx, word [ebp - 0x181c]
push eax
push 0x1006a14
mov dword [ebp + ecx*4 - 0x1918], eax
push 0x64
lea ecx, [ebp + 0x10]
call fcn.01012a90
push eax
push 0x1006a04
push 0xff
push 0xb
push 0x8f6
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01012994
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x181c], esp
push 0x64
push ecx
mov ecx, eax
call fcn.01012a70
push dword [ebp - 0x1824]
call fcn.01012f36
add esp, 0x6c
lea ecx, [ebp - 0x18d8]
call fcn.01012a44
push 0x1005f3c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x1824], eax
test eax, eax
jne 0x1014ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10069b8
push 0xff
push 0xb
push 0x906
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01012994
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.01012a70
lea eax, [ebp - 0x1880]
push eax
call fcn.010138f0
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.01012a44
push 0x8000ffff
call fcn.01012975
lea ecx, [ebp - 0x1818]
push ecx
lea ecx, [ebp - 0x1918]
push ecx
push dword [ebp - 0x1820]
push dword [ebp - 0x182c]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1014b5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006978
push 0xff
push 0xb
push 0x917
push ebx
push edi
push esi
lea ecx, [ebp - 0x18d8]
call fcn.01012994
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x1820], esp
push 0x64
push ecx
mov ecx, eax
call fcn.01012a70
lea eax, [ebp - 0x1880]
push eax
call fcn.010138f0
add esp, 0x64
lea ecx, [ebp - 0x18d8]
call fcn.01012a44
push dword [ebp - 0x1824]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x1014b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006928
push 0xff
push 0xb
push 0x91e
jmp 0x1014a92
lea eax, [ebp - 0x1828]
push eax
call fcn.010087f4
cmp dword [ebp - 0x1834], 0
je 0x1014bab
push dword [ebp - 0x1834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1830], 0
je 0x1014bc0
push dword [ebp - 0x1830]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1880]
call fcn.01013c60
lea ecx, [ebp + 0x10]
call fcn.01012a44
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.01011f29
leave
ret