Function at 0x40f770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x34], 1
mov edi, eax
jle 0x40f97b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x40f7bc
call dword [sym.imp.KERNEL32.dll_AllocConsole]
jmp 0x40f7c9
push 0x41e658
call fcn.00410394
add esp, 4
call fcn.004110d2
add eax, 0x20
push eax
push 0x41e84c
push 0x41f2e8
call fcn.00411f4c
call fcn.004110d2
push eax
push 0x41f2e4
push 0x41f2e8
call fcn.00411f4c
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0x20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, 2
cmp dword [ebp - 0x34], esi
jl 0x40f958
mov ecx, dword [edi + 4]
push str._install
push ecx
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x40f8a7
lea edx, [ebp - 0x38]
push edx
call fcn.00408350
add esp, 4
xor esi, esi
test al, al
je 0x40f888
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00408910
mov eax, dword [eax]
add esp, 8
cmp eax, ebx
jge 0x40f860
cmp esi, ebx
je 0x40f874
lea edx, [ebp - 0x40]
push edx
call fcn.00407f50
mov eax, dword [eax]
inc esi
add esp, 4
cmp esi, 2
jl 0x40f846
push eax
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401020
add esp, 8
jmp 0x40f915
push str.The_driver_is_already_installed_n
call fcn.00410394
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x40fac3
cmp dword [ebp - 0x34], esi
jl 0x40f958
mov edx, dword [edi + 4]
push str._uninstall
push edx
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x40f958
push ebx
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x8007139f
call fcn.00402a90
push 0x41e730
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004029b0
lea ecx, [ebp - 0x3c]
call fcn.00403190
lea edx, [ebp - 0x40]
push edx
call fcn.00408740
mov eax, dword [eax]
push eax
mov dword [ebp - 0x38], eax
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401020
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x40f921
mov eax, 0x421594
push eax
push 0x41e5c8
call fcn.00410394
mov eax, dword [ebp - 0x30]
add esp, 8
cmp eax, ebx
je 0x40f969
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40f969
push eax
call fcn.004101bf
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x40fac3
mov edx, dword [ebp - 0x34]
push 1
push edi
push edx
call fcn.004075b0
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x40fac3
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ChangeWindowMessageFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40f9d6
push 1
push 0x233
call esi
push 1
push 0x4a
call esi
push 1
push 0x49
call esi
mov esi, dword [0x42549c]
mov dword [0x42541c], ebx
cmp esi, dword [0x4254a0]
jae 0x40fa08
lea ebx, [ebx]
mov eax, dword [esi]
cmp eax, ebx
je 0x40f9fd
mov ecx, dword [eax + 0x20]
push 1
call ecx
add esi, 4
cmp esi, dword [0x4254a0]
jb 0x40f9f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x425420], eax
mov dword [0x425424], ebx
call fcn.004104da
add esp, 4
cmp eax, ebx
je 0x40fad8
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [0x425424], eax
mov dword [0x425428], ebx
or eax, 0xffffffff
push ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xa4], vtable.CMainDlg.0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040e460
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.0040f650
mov ecx, 0x4253f0
call fcn.0040e400
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410451
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x425424], ebx
jmp 0x40fa3e