Function at 0x40714a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x41c194]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [0x41c15c]
lea edi, [esp + 0x30]
push 0x41c170
push 0x41c158
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
lea esi, [esi - 0x10]
movsd dword es:[edi], dword [esi]
push 0x404e10
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [0x41c178], esi
mov dword [0x41c17c], esi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x4071d7
mov ecx, dword [0x41c15c]
movzx eax, word [ecx]
push eax
push ecx
push 2
push dword [0x41c174]
push dword [0x41c170]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
call fcn.00417314
call fcn.004169b0
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 2
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x407376
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.0041af8a
mov edi, ebx
test eax, eax
js 0x407214
mov edi, dword [esp + 0x10]
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.00407095
push eax
mov edx, edi
mov ecx, ebx
call fcn.0040a492
test eax, eax
je 0x4073b2
call fcn.004070f4
mov ecx, eax
call fcn.00416a46
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4074a0
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 0x4072c8
cmp dword [esp + 0x18], 0x50
jne 0x40727e
push 0
push 0
push 0x8001
push dword [0x41d1dc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x41d1d0]
test eax, eax
je 0x407297
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4072c8
lea eax, [esp + 0x14]
push eax
push dword [0x41e464]
push dword [0x41d1dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4072c8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x407262
lea eax, [esp + 0x40]
push eax
push 0
push 0x41e040
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
push ecx
sbb eax, eax
and eax, dword [esp + 0x64]
push ecx
mov edx, eax
mov ecx, 0x41cf60
call fcn.00416eb7
mov ecx, dword [0x41d240]
test ecx, ecx
je 0x407329
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41f4a8]
call esi
and dword [0x41d240], 0
mov esi, dword [esp + 0xc]
call fcn.00405363
test esi, esi
je 0x407339
push esi
call dword [sym.imp.USER32.dll_UnhookWinEvent]
xor esi, esi
mov ecx, dword [0x41cf98]
mov eax, ecx
mov edx, dword [0x41cf9c]
or eax, edx
je 0x407360
push edx
push ecx
call fcn.0041a097
mov dword [0x41cf98], esi
mov dword [0x41cf9c], esi
call fcn.00405392
cmp edi, ebx
je 0x407370
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
push dword [0x41c174]
push dword [0x41c170]
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
pop edi
mov dword [0x41c170], esi
mov dword [0x41c174], esi
mov dword [0x41c158], esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b4e0
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x1c], esi
jmp 0x40733b