Function at 0x40c2e3
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x421148]
xor eax, esp
mov dword [esp + 0x50], eax
test byte [0x421c90], 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
jne 0x40c30d
call fcn.0040d670
xor eax, eax
mov byte [esp + 0x10], 3
mov dword [esp + 0xc], eax
sub esp, 0xc
mov dword [esp + 0x20], eax
mov edx, 0x12766c4
mov ax, word [esp + 0x1c]
mov ecx, 0x421c90
mov word [esp + 0x24], ax
lea eax, [esp + 0x20]
push eax
call fcn.0040e37a
mov eax, dword fs:[0x30]
lea edi, [esp + 0x1c]
push 7
mov cl, byte [eax + 3]
mov eax, dword fs:[0x30]
or cl, 0x80
mov byte [eax + 3], cl
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov esi, eax
call fcn.0041c883
call fcn.0041c915
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push 2
push edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x40c52b
lea edx, [esp + 0xc]
mov dword [esp + 0xc], edi
call fcn.0041f5ba
mov edi, ebx
test eax, eax
js 0x40c3a4
mov edi, dword [esp + 0xc]
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0040c230
push eax
mov edx, edi
mov ecx, ebx
call fcn.00410f69
test eax, eax
je 0x40c4ec
call fcn.0040c28f
mov ecx, eax
call fcn.0041c996
xor esi, esi
push esi
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
push 0x40c750
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x40c476
cmp dword [esp + 0x20], 0x50
jne 0x40c411
push 0
push 0
push 0x8001
push dword [0x422c94]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0x1c]
push eax
push dword [0x421d58]
push dword [0x422c94]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40c476
mov eax, dword [0x422c88]
test eax, eax
je 0x40c445
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40c476
lea eax, [esp + 0x1c]
push eax
push dword [0x421d54]
push dword [0x422c94]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40c476
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40c3f5
lea eax, [esp + 0x38]
push eax
push 0
push dword [0x422800]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
neg eax
push ecx
sbb eax, eax
and eax, dword [esp + 0x5c]
push ecx
mov edx, eax
mov ecx, 0x421c98
call fcn.0041cdf0
mov ecx, dword [0x422ca0]
test ecx, ecx
je 0x40c4dc
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4234b4]
call esi
and dword [0x422ca0], 0
mov esi, dword [esp + 0xc]
call fcn.00409f2d
test esi, esi
je 0x40c4ec
push esi
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov ecx, dword [0x422848]
mov eax, ecx
mov edx, dword [0x42284c]
or eax, edx
je 0x40c513
push edx
push ecx
call fcn.0041e83f
and dword [0x422848], 0
and dword [0x42284c], 0
call fcn.00409f5c
cmp edi, ebx
je 0x40c523
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
xor edi, edi
push dword [0x421124]
push dword [0x421120]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventUnregister]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov dword [0x421120], edi
mov dword [0x421124], edi
mov dword [0x421108], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041fb30
mov esp, ebp
pop ebp
ret 0x10