Function at 0x40edf5
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.004237b5
call fcn.00423871
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 0x40efdf
push dword [ebp + 0x14]
mov ecx, edi
call fcn.0040ed34
push eax
mov edx, esi
mov ecx, esi
call fcn.00412ef7
test eax, eax
je 0x40efaf
call fcn.0040ed99
mov ecx, eax
call fcn.004238c9
push ebx
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
push 0x40f130
push ebx
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov ebx, eax
xor esi, esi
jmp 0x40ef31
cmp dword [esp + 0x10], 0x50
jne 0x40eeb3
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 0x40ef31
mov eax, dword [0x42ada8]
test eax, eax
je 0x40eee7
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40ef31
mov eax, dword [0x42a928]
test eax, eax
je 0x40ef00
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40ef31
lea eax, [esp + 0xc]
push eax
push dword [0x429e20]
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40ef31
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 0x40ee99
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.00423b90
mov ecx, dword [0x42adb8]
test ecx, ecx
je 0x40ef9d
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.0040ca81
test ebx, ebx
je 0x40efad
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 0x40efd4
push edx
push ecx
call fcn.00425d90
mov dword [0x42a960], ebx
mov dword [0x42a964], ebx
call fcn.0040cab6
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.00426d60
mov esp, ebp
pop ebp
ret 0x10