Function at 0x40109a9e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4011c9bb
call sub.MSVCRT.dll__EH_prolog
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x68]
push 0x4010aeb0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x68]
xor ebx, ebx
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ecx, 0x40120030
push 0x40121310
call fcn.40109c76
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x4010aeac
lea edi, [ebp - 0x14]
movsw word es:[edi], word [esi]
mov dword [0x401200a8], eax
movsb byte es:[edi], byte [esi]
call fcn.40109cf7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push eax
mov dword [ebp - 0x18], 1
push dword [ebp + 0x10]
call fcn.40109d65
pop ecx
mov dword [ebp + 0x10], eax
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x40109bb3
mov eax, dword [0x40120018]
lea edx, [ebp + 8]
push edx
push 0x20019
push ebx
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push 0x4010ae48
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0xb0]
cmp eax, ebx
je 0x4010db90
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x4010ae3c
push dword [ebp + 0x10]
call esi
cmp eax, ebx
je 0x4010dba9
push 0x4010ae30
push dword [ebp + 0x10]
call esi
cmp eax, ebx
je 0x4010dbc4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0x10]
call fcn.40109d65
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
jmp 0x40109b36
cmp dword [ebp - 0x18], ebx
je 0x40109c54
mov byte [ebp + 0x13], bl
mov eax, dword [0x40120018]
push 4
pop esi
lea edx, [ebp - 0x18]
push edx
push 1
push ebx
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push 0x4010adc0
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0xb0]
cmp eax, ebx
je 0x4010dbd2
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x13], bl
jne 0x40109c0a
push ebx
push ebx
push ebx
push 3
push 1
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 1
mov edi, 0x40120030
push esi
push edi
call fcn.40109d9d
cmp eax, ebx
jl 0x4010dc20
push 0x40
call fcn.4010a5bc
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call esi
test eax, eax
je 0x40109c4e
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
jmp 0x40109c35
push edi
call fcn.40102340
cmp dword [ebp - 0x20], ebx
je 0x40109c62
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
cmp dword [ebp + 8], ebx
je 0x40109b6f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40109c65
push ebx
push ebx
mov ecx, 0x40120030
call fcn.4011b8cf
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
jmp 0x40109bb3
push ebx
push ebx
push 0x40120030
call fcn.40116227
jmp 0x4010dbb5
lea edx, [ebp - 0x24]
mov eax, dword [0x40120018]
push edx
lea edx, [ebp + 8]
push edx
push ebx
push ebx
push 0x40113178
push dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
cmp eax, ebx
jne 0x4010dc02
cmp dword [ebp + 8], ebx
je 0x4010dc02
mov byte [ebp + 0x13], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40109bef
push ebx
lea ecx, [ebp + 0x10]
push 1
push ecx
push ebx
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push ebx
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
pop eax
jmp 0x40109c65