Function at 0x40eec3
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4291b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov edi, eax
call fcn.00423975
call fcn.00423a31
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push 2
push ebx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x40f0ad
push dword [ebp + 0x14]
mov ecx, edi
call fcn.0040ee04
push eax
mov edx, esi
mov ecx, esi
call fcn.00413047
test eax, eax
je 0x40f07d
call fcn.0040ee69
mov ecx, eax
call fcn.00423a89
push ebx
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
push 0x40f200
push ebx
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov ebx, eax
xor esi, esi
jmp 0x40efff
cmp dword [esp + 0x10], 0x50
jne 0x40ef81
push esi
push esi
push 0x8001
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0xc]
push eax
push dword [0x429e24]
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40efff
mov eax, dword [0x42ada8]
test eax, eax
je 0x40efb5
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40efff
mov eax, dword [0x42a928]
test eax, eax
je 0x40efce
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40efff
lea eax, [esp + 0xc]
push eax
push dword [0x429e20]
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40efff
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40ef67
mov esi, dword [0x42aba0]
lea eax, [esp + 0x28]
mov edi, dword [0x42ab94]
push eax
push 0
push dword [0x42a8cc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
neg eax
mov ecx, 0x42a930
push esi
sbb eax, eax
and eax, dword [esp + 0x4c]
push edi
mov edx, eax
call fcn.00423d50
mov ecx, dword [0x42adb8]
test ecx, ecx
je 0x40f06b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42b5a4]
call esi
and dword [0x42adb8], 0
call fcn.0040cb01
test ebx, ebx
je 0x40f07b
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
xor ebx, ebx
mov ecx, dword [0x42a960]
mov eax, ecx
mov edx, dword [0x42a964]
or eax, edx
je 0x40f0a2
push edx
push ecx
call fcn.00425f50
mov dword [0x42a960], ebx
mov dword [0x42a964], ebx
call fcn.0040cb36
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov eax, dword [0x42911c]
mov ecx, dword [0x429118]
push eax
push ecx
mov dword [0x429100], ebx
mov dword [0x429118], ebx
mov dword [0x42911c], ebx
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426f20
mov esp, ebp
pop ebp
ret 0x10