Function at 0x4012c0
Capabilities:
Accept command line arguments
Create process on windows
Resolve function by parsing pe exports
Self delete

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f4
mov eax, dword [0x408024]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2fa]
push ecx
mov word [esp + 0x2fc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x70]
push edx
call fcn.00401ac0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0xfa]
push edx
mov dword [esp + 0x3c], eax
mov word [esp + 0xfc], cx
call sub.MSVCR90.dll_memset
mov ebx, 1
add esp, 0xc
cmp dword [esp + 0x34], ebx
jle 0x4013b1
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ebx*4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401351
lea edi, [esp + 0xf0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401370
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401370
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xf0]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401396
mov ecx, dword [0x4061e4]
inc ebx
cmp ebx, dword [esp + 0x34]
mov dword [edi], ecx
jl 0x401348
push 0x4061e8
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.__delay
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x40622c
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, 0x4011b0
mov edx, 2
call fcn.00401ee0
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.Restart_application
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.__restart
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x406270
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x7c]
push eax
xor ecx, ecx
xor edx, edx
call fcn.00401ee0
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.Display_this_help
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.__help
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x4062ac
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x7c]
push ecx
xor ecx, ecx
xor edx, edx
call fcn.00401ee0
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea edx, [esp + 0xf0]
mov dword [esp + 0xc], 0x26
push edx
lea ecx, [esp + 0x74]
lea edi, [esp + 0x10]
call fcn.00402c10
push 0x40622c
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [esp + 0x28], 2
jne 0x401588
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_const]
cmp word [eax], 0x2d
jne 0x401588
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
lea esi, [esp + 0x78]
call fcn.00402f40
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x88]
test esi, esi
je 0x40155c
cmp esi, dword [esp + 0x70]
je 0x401562
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x4015c2
test esi, esi
jne 0x401584
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 0x18]
jne 0x40157f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x28]
jmp 0x4015b6
mov esi, dword [esi]
jmp 0x401574
cmp dword [esp + 0x28], 3
jb 0x4015c2
push 2
push 0
push 0x40634c
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int__unsigned_int_const]
test eax, eax
jne 0x4015c2
lea ecx, [esp + 0x90]
lea eax, [esp + 0x14]
call fcn.00401a50
test eax, eax
je 0x4015c2
cmp dword [eax], 0
setg bl
jmp 0x4015c4
xor bl, bl
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x401646
push 0x40622c
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea esi, [esp + 0x38]
lea ebx, [esp + 0x54]
lea edi, [esp + 0x70]
call fcn.00402080
cmp dword [eax + 0x18], 8
jb 0x4015fd
mov eax, dword [eax + 4]
jmp 0x401600
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x54]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test esi, esi
je 0x40162b
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, str.__delay
lea ebx, [esp + 0xf0]
call fcn.004011e0
mov ecx, 0x40622c
call fcn.004011e0
push 0x406270
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [esp + 0x28], 2
jne 0x4016c2
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_const]
cmp word [eax], 0x2d
jne 0x4016c2
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x78]
call fcn.00402f40
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x88]
test esi, esi
je 0x401696
cmp esi, dword [esp + 0x70]
je 0x40169c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x4016fc
test esi, esi
jne 0x4016be
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 0x18]
jne 0x4016b9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x28]
jmp 0x4016f0
mov esi, dword [esi]
jmp 0x4016ae
cmp dword [esp + 0x28], 3
jb 0x4016fc
push 2
push 0
push 0x40634c
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int__unsigned_int_const]
test eax, eax
jne 0x4016fc
lea ecx, [esp + 0x90]
lea eax, [esp + 0x14]
call fcn.00401a50
test eax, eax
je 0x4016fc
cmp dword [eax], 0
setg bl
jmp 0x4016fe
xor bl, bl
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x40176f
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push 0
push 0x10
push str.DriverScanner
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call section..text
push 0
push str.DSWINDOW
call esi
test eax, eax
je 0x401754
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push 0
push str.DSWINDOW
call esi
test eax, eax
jne 0x401740
mov ecx, str.__restart
lea ebx, [esp + 0xf0]
call fcn.004011e0
mov ecx, 0x406270
call fcn.004011e0
push 0x208
lea ecx, [esp + 0x2f4]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
mov esi, dword [sym.imp.MSVCR90.dll_wcsstr]
push 0x406308
push eax
call esi
add esp, 0x14
test eax, eax
jne 0x4017ab
mov eax, dword [edi]
push str.Launcher.exe
push eax
call esi
add esp, 8
xor edx, edx
mov word [eax], dx
mov ecx, dword [edi]
push 0x208
lea eax, [esp + 0x2f4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edi, [esp + 0x2f0]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4017d0
push 0
push 0
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x2fc]
push eax
push str.open
mov ecx, 9
mov esi, str.driverscanner.exe
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401834
lea ecx, [esp + 0x70]
push ecx
call fcn.00401bc0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.004047bd
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x70]
push edx
call fcn.00401bc0
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004047bd
mov esp, ebp
pop ebp
ret 0x10