Function at 0x408640
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4b8
mov eax, dword [0x452020]
xor eax, esp
mov dword [esp + 0x4b4], eax
push esi
push edi
call fcn.0041a480
mov dword [esp + 0x14], 0
call fcn.0041a760
push ecx
lea edx, [esp + 0x80]
mov dword [esp + 0x80], 0
call fcn.0041b1e0
add esp, 4
test al, al
je 0x40869f
or dword [esp + 0x7c], 1
lea edx, [esp + 0x7c]
push ecx
call fcn.0041b3f0
add esp, 4
push ecx
lea edx, [esp + 0x80]
mov dword [esp + 0x80], 0
call fcn.0041b5f0
add esp, 4
test al, al
je 0x4086d0
or dword [esp + 0x7c], 1
lea edx, [esp + 0x7c]
push ecx
call fcn.0041b800
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x120], 0
mov ecx, edx
mov dword [esp + 0x124], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x110], xmm0
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408700
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x118]
call fcn.00405800
push 8
xorps xmm0, xmm0
mov dword [esp + 0x384], 0
push str.__action
lea ecx, [esp + 0x378]
movaps xmmword [esp + 0x378], xmm0
mov dword [esp + 0x38c], 0
call fcn.00405800
push 5
xorps xmm0, xmm0
mov dword [esp + 0x364], 0
push str.__log
lea ecx, [esp + 0x358]
movaps xmmword [esp + 0x358], xmm0
mov dword [esp + 0x36c], 0
call fcn.00405800
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x344], 0
push str.__deferlog
lea ecx, [esp + 0x338]
movaps xmmword [esp + 0x338], xmm0
mov dword [esp + 0x34c], 0
call fcn.00405800
push 9
xorps xmm0, xmm0
mov dword [esp + 0x324], 0
push str.__verbose
lea ecx, [esp + 0x318]
movaps xmmword [esp + 0x318], xmm0
mov dword [esp + 0x32c], 0
call fcn.00405800
push 9
xorps xmm0, xmm0
mov dword [esp + 0x1c4], 0
push str.__elevate
lea ecx, [esp + 0x1b8]
movaps xmmword [esp + 0x1b8], xmm0
mov dword [esp + 0x1cc], 0
call fcn.00405800
push 5
xorps xmm0, xmm0
mov dword [esp + 0x264], 0
push str.__inf
lea ecx, [esp + 0x258]
movaps xmmword [esp + 0x258], xmm0
mov dword [esp + 0x26c], 0
call fcn.00405800
push 4
xorps xmm0, xmm0
mov dword [esp + 0x244], 0
push str.__id
lea ecx, [esp + 0x238]
movaps xmmword [esp + 0x238], xmm0
mov dword [esp + 0x24c], 0
call fcn.00405800
push 7
xorps xmm0, xmm0
mov dword [esp + 0x1a4], 0
push str.__event
lea ecx, [esp + 0x198]
movaps xmmword [esp + 0x198], xmm0
mov dword [esp + 0x1ac], 0
call fcn.00405800
push 6
xorps xmm0, xmm0
mov dword [esp + 0x284], 0
push str.__port
lea ecx, [esp + 0x278]
movaps xmmword [esp + 0x278], xmm0
mov dword [esp + 0x28c], 0
call fcn.00405800
xorps xmm0, xmm0
mov dword [esp + 0x300], 0
movaps xmmword [esp + 0x2f0], xmm0
push 4
push str.__oa
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x30c], 0
call fcn.00405800
push 0x12
xorps xmm0, xmm0
mov dword [esp + 0x414], 0
push str.__installpnpdriver
lea ecx, [esp + 0x408]
movaps xmmword [esp + 0x408], xmm0
mov dword [esp + 0x41c], 0
call fcn.00405800
push 0x14
xorps xmm0, xmm0
mov dword [esp + 0x434], 0
push str.__uninstallpnpdriver
lea ecx, [esp + 0x428]
movaps xmmword [esp + 0x428], xmm0
mov dword [esp + 0x43c], 0
call fcn.00405800
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x2e4], 0
push str.__location
lea ecx, [esp + 0x2d8]
movaps xmmword [esp + 0x2d8], xmm0
mov dword [esp + 0x2ec], 0
call fcn.00405800
push 9
xorps xmm0, xmm0
mov dword [esp + 0x2c4], 0
push str.__usersid
lea ecx, [esp + 0x2b8]
movaps xmmword [esp + 0x2b8], xmm0
mov dword [esp + 0x2cc], 0
call fcn.00405800
push 0xc
xorps xmm0, xmm0
mov dword [esp + 0x2a4], 0
push str.__drivername
lea ecx, [esp + 0x298]
movaps xmmword [esp + 0x298], xmm0
mov dword [esp + 0x2ac], 0
call fcn.00405800
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x3f4], 0
push str.__datatype
lea ecx, [esp + 0x3e8]
movaps xmmword [esp + 0x3e8], xmm0
mov dword [esp + 0x3fc], 0
call fcn.00405800
push 0x10
xorps xmm0, xmm0
mov dword [esp + 0x3d4], 0
push str.__printprocessor
lea ecx, [esp + 0x3c8]
movaps xmmword [esp + 0x3c8], xmm0
mov dword [esp + 0x3dc], 0
call fcn.00405800
xorps xmm0, xmm0
mov dword [esp + 0xb0], 0
xor eax, eax
movaps xmmword [esp + 0xa0], xmm0
mov word [esp + 0xa0], ax
lea edx, [esp + 0x350]
lea eax, [esp + 0xa0]
mov dword [esp + 0xb4], 7
push eax
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x408af1
push 0x14
push str.TeamViewer_Hooks.log
lea ecx, [esp + 0xa8]
call fcn.0040b010
xorps xmm0, xmm0
mov dword [esp + 0x220], 0
xor eax, eax
movaps xmmword [esp + 0x210], xmm0
mov word [esp + 0x210], ax
lea edx, [esp + 0x330]
lea eax, [esp + 0x210]
mov dword [esp + 0x224], 7
push eax
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea edx, [esp + 0x310]
test al, al
lea ecx, [esp + 0x110]
lea eax, [esp + 0x210]
sete byte [esp + 0x7c]
push eax
call fcn.00408290
add esp, 4
mov dword [esp + 0x78], 0
test al, al
mov ecx, 0x64
mov esi, 0xc8
lea eax, [esp + 0xa0]
cmovne esi, ecx
cmp dword [esp + 0xb4], 8
push esi
cmovae eax, dword [esp + 0xa4]
lea ecx, [esp + 0x7c]
push eax
mov dword [esp + 0x1c], esi
call fcn.00407c40
cmp byte [esp + 0x7c], 0
je 0x408bac
lea ecx, [esp + 0x78]
call fcn.00407d20
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Loader_started_with:__ls
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
xorps xmm0, xmm0
mov dword [esp + 0x210], 0
xor eax, eax
movaps xmmword [esp + 0x200], xmm0
mov word [esp + 0x200], ax
lea edx, [esp + 0x380]
lea eax, [esp + 0x200]
mov dword [esp + 0x214], 7
push eax
lea ecx, [esp + 0x124]
call fcn.00408290
add esp, 0x14
test al, al
jne 0x408c3b
push str.Type_missing_in_command_line
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
movzx esi, al
jmp 0x40a800
push 0x70
lea eax, [esp + 0x44c]
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea ecx, [esp + 0x448]
call fcn.00406430
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.0040b350
mov edi, dword [esp + 0x100]
mov eax, dword [0x4540c8]
cmp byte [edi + 0xd], 0
jne 0x408c9c
lea eax, [edi + 0x10]
push eax
lea eax, [esp + 0x1f4]
push eax
call fcn.0040b420
test al, al
mov eax, dword [0x4540c8]
je 0x408c9e
mov edi, eax
cmp eax, edi
jne 0x408ca6
xor edi, edi
jmp 0x408ca9
mov edi, dword [edi + 0x28]
lea eax, [esp + 0x210]
push eax
lea edx, [esp + 0x1b4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
je 0x4090f9
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [esp + 0x44c]
test esi, esi
je 0x409146
lea ecx, [esp + 0x1c]
push ecx
push 0x10000000
push eax
mov ecx, esi
call dword [0x43d1ac]
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x409146
lea eax, [esp + 0x18]
mov dword [esp + 0x134], 0
push eax
lea eax, [esp + 0x138]
push eax
push 0
push 0
push ecx
push dword [esp + 0x30]
lea ecx, [esp + 0x460]
call fcn.00406fd0
test al, al
jne 0x408d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTokenInformation_failed__d
jmp 0x409152
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x408d70
cmp eax, 0x18
je 0x408d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTokenInformation_1__failed__d
jmp 0x409152
mov esi, dword [esp + 0x134]
push esi
call fcn.0041d5a3
add esp, 4
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x138]
push ecx
push esi
push eax
push ecx
push dword [esp + 0x30]
lea ecx, [esp + 0x460]
call fcn.00406fd0
test al, al
je 0x40910c
cmp dword [esp + 0x18], 0
je 0x40910c
mov eax, dword [esp + 0xc]
cmp dword [eax], 0
jne 0x4090ec
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0xfc]
call fcn.0040aee0
cmp dword [esp + 0x10c], 8
lea ecx, [esp + 0xf8]
mov edx, dword [esp + 0x108]
cmovae ecx, dword [esp + 0xf8]
push 2
push 0x44ae54
push 0
call fcn.00405740
add esp, 0xc
lea ecx, [esp + 0xf8]
mov esi, eax
lea eax, [esp + 0xe0]
push esi
push 0
push eax
call fcn.00405050
push esi
push 0
lea ecx, [esp + 0x100]
call fcn.0040ae20
mov eax, dword [esp + 0x1c0]
lea edx, [esp + 0x1b0]
cmp dword [esp + 0x1c4], 8
lea ecx, [esp + 0xf8]
push eax
cmovae edx, dword [esp + 0x1b4]
cmp dword [esp + 0x110], 8
push eax
cmovae ecx, dword [esp + 0x100]
push edx
mov edx, dword [esp + 0x114]
push 0
call fcn.00405740
add esp, 0xc
lea ecx, [esp + 0xfc]
push eax
call fcn.0040ae20
push 0
push 0x22
lea ecx, [esp + 0xe8]
call fcn.004050b0
cmp eax, 0xffffffff
je 0x408ec4
nop word [eax + eax]
push 1
push eax
lea ecx, [esp + 0xe8]
call fcn.0040ae20
push 0
push 0x22
lea ecx, [esp + 0xe8]
call fcn.004050b0
cmp eax, 0xffffffff
jne 0x408ea0
mov esi, dword [esp + 0xf4]
lea edx, [esp + 0xe0]
mov eax, dword [esp + 0xf0]
cmp esi, 8
cmovae edx, dword [esp + 0xe0]
test eax, eax
je 0x408f2b
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x20
lea eax, [edx + ecx*2]
jne 0x408f0d
nop dword [eax + eax]
cmp eax, edx
je 0x408f2b
sub eax, 2
cmp word [eax], 0x20
je 0x408f00
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x408f2b
inc eax
lea ecx, [esp + 0xe0]
push eax
call fcn.0040ae80
mov esi, dword [esp + 0xf4]
cmp esi, 8
mov dword [esp + 0x38], 0
lea eax, [esp + 0xe0]
mov dword [esp + 0x58], 0
cmovae eax, dword [esp + 0xe0]
xorps xmm0, xmm0
cmp dword [esp + 0x10c], 8
mov dword [esp + 0x30], eax
lea eax, [esp + 0xf8]
cmovae eax, dword [esp + 0xf8]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x30], str.runas
mov dword [esp + 0x40], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4090bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx___failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp edi, 2
je 0x408ff5
cmp edi, 3
je 0x408ff5
cmp edi, 4
je 0x408ff5
cmp edi, 5
je 0x408ff5
cmp edi, 0xc
je 0x408ff5
cmp edi, 0xd
jne 0x4090bb
lea ecx, [esp + 0x138]
call fcn.004051e0
lea eax, [esp + 0x138]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
je 0x4090af
push 0x2c
lea eax, [esp + 0x168]
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x80]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x88]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x80]
call fcn.00405140
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0x138]
call fcn.00405140
call fcn.004085f0
lea ecx, [esp + 0xe0]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0xf8]
call fcn.00405140
push dword [esp + 0xc]
call fcn.0041d1fa
add esp, 4
jmp 0x40a794
push eax
call fcn.0041d1fa
mov esi, dword [esp + 0x18]
add esp, 4
lea eax, [edi - 1]
cmp eax, 0xc
ja case.default.0x409105
jmp dword [eax*4 + 0x40ade8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTokenInformation_2__failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
call fcn.004085f0
push dword [esp + 0xc]
movzx esi, al
call fcn.0041d1fa
add esp, 4
jmp 0x40a794
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken___failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
call fcn.004085f0
movzx esi, al
jmp 0x40a794
cmp dword [esp + 0xb4], 8
lea eax, [esp + 0xa0]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x44a1d8
cmovae eax, dword [esp + 0xa0]
lea ecx, [esp + 0x2c]
push esi
push eax
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00407c40
cmp byte [esp + 0x7c], 0
je 0x4091cd
lea ecx, [esp + 0x2c]
call fcn.00407d20
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x44a1dc
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.00407340
mov esi, eax
call fcn.0041a430
lea ecx, [esp + 0x20]
call fcn.00407180
jmp 0x40a794
lea ecx, [esp + 0xf8]
call fcn.004051e0
lea ecx, [esp + 0xe0]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409258
push str.missing_id
jmp 0x4092ae
lea eax, [esp + 0xf8]
push eax
lea edx, [esp + 0x254]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
mov byte [esp + 0x13], al
lea eax, [esp + 0xc8]
lea edx, [esp + 0x190]
lea ecx, [esp + 0x110]
push eax
call fcn.00408290
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x4092f1
cmp edi, 2
je 0x4092a9
cmp edi, 3
jne 0x4092f1
push str.missing_inf
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
lea ecx, [esp + 0xc8]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0xe0]
call fcn.00405140
lea ecx, [esp + 0xf8]
call fcn.00405140
jmp 0x40a794
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x138]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x140]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00402070
lea ecx, [esp + 0x138]
call fcn.00405140
sub edi, 2
je 0x409475
sub edi, 1
je 0x409395
sub edi, 1
jne 0x4094f2
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x24]
call fcn.00402ba0
cmp eax, 1
je 0x4094f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Remove_failed__d
jmp 0x4094dd
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x28]
call fcn.00402a40
mov esi, eax
cmp esi, 1
je 0x4094f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Update_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp esi, 3
jne 0x4094f2
push str.DevInst_not_found__attempting_Rescan
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00403c40
cmp eax, 1
jne 0x409467
push str.Rescan_successful__attempting_Update
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00402a40
cmp eax, 1
jne 0x409459
push str.Update_successful
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
jmp 0x4094f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Update_failed__d
jmp 0x4094dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Rescan_failed__d
jmp 0x4094dd
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x28]
call fcn.00402530
mov esi, eax
cmp esi, 1
je 0x4094f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Install_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp esi, 6
jne 0x4094f2
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x24]
call fcn.004040d0
cmp eax, 1
je 0x4094f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp dword [esp + 0xd8], 0
je 0x40950d
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x24]
call fcn.00403d50
lea ecx, [esp + 0x20]
call fcn.00402480
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0xe0]
call fcn.00405140
lea ecx, [esp + 0xf8]
jmp 0x40a774
lea ecx, [esp + 0x80]
call fcn.004051e0
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x138]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x140]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x138]
call fcn.00405140
lea ecx, [esp + 0x164]
call fcn.00403c40
cmp eax, 1
je 0x4095fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Rescan_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp dword [esp + 0x90], 0
je 0x40961c
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0x80]
jmp 0x40a774
lea ecx, [esp + 0x80]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409692
push str.missing_id
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
movzx esi, al
jmp 0x409e57
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x138]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x140]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x138]
call fcn.00405140
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.004040d0
cmp eax, 1
je 0x409752
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp dword [esp + 0xd8], 0
je 0x409770
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0x80]
jmp 0x40a774
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea ecx, [esp + 0x80]
call fcn.004051e0
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x40980a
push str.missing_port_on_AddPrinterPort
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
lea ecx, [esp + 0x80]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0xc8]
call fcn.00405140
jmp 0x40a794
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x138]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x140]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x138]
call fcn.00405140
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.00404350
cmp eax, 1
je 0x4098cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddPrinterPort_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
jmp 0x4098e3
push str.AddPrinterPort_success
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
cmp dword [esp + 0xd8], 0
je 0x409901
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0x80]
call fcn.00405140
lea ecx, [esp + 0xc8]
jmp 0x40a774
lea ecx, [esp + 0x80]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea ecx, [esp + 0x138]
call fcn.004051e0
lea ecx, [esp + 0x1d8]
call fcn.004051e0
lea ecx, [esp + 0x3a8]
call fcn.004051e0
lea ecx, [esp + 0x390]
call fcn.004051e0
lea ecx, [esp + 0xf8]
call fcn.004051e0
lea ecx, [esp + 0xe0]
call fcn.004051e0
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x4099b1
push str.missing_printerName_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0x138]
push eax
lea edx, [esp + 0x2b4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x4099dd
push str.missing_userSID_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0x1d8]
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409a09
push str.missing_port_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0x3a8]
push eax
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409a32
push str.missing_printerLocation_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0x390]
push eax
lea edx, [esp + 0x294]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409a5b
push str.missing_driverName_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0xf8]
push eax
lea edx, [esp + 0x3e4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409a84
push str.missing_strDatatype_on_AddPrinter
jmp 0x409aab
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x3c4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409b06
push str.missing_strPrintProcessor_on_AddPrinter
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
lea ecx, [esp + 0xe0]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0xf8]
call fcn.00405140
lea ecx, [esp + 0x390]
call fcn.00405140
lea ecx, [esp + 0x3a8]
call fcn.00405140
lea ecx, [esp + 0x1d8]
call fcn.00405140
jmp 0x409e4b
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x20]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x20]
call fcn.00405140
push 0x54
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041f370
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x138]
lea ecx, [esp + 0x164]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00404e50
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409cbf
cmp dword [esp + 0xdc], 8
lea ecx, [esp + 0xc8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
cmovae ecx, dword [esp + 0xc8]
cmp dword [esp + 0x1ec], 8
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1d8]
cmovae ecx, dword [esp + 0x1d8]
cmp dword [esp + 0x3a4], 8
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x390]
cmovae ecx, dword [esp + 0x390]
cmp dword [esp + 0x3bc], 8
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x3a8]
cmovae ecx, dword [esp + 0x3a8]
cmp dword [esp + 0xf4], 8
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xe0]
cmovae ecx, dword [esp + 0xe0]
cmp dword [esp + 0x10c], 8
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xf8]
cmovae ecx, dword [esp + 0xf8]
push eax
push 2
push 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], 0x240
mov dword [esp + 0x64], 1
call dword [sym.imp.WINSPOOL.DRV_AddPrinterW]
mov esi, eax
test esi, esi
je 0x409cb1
push str.CDriverInstaller::AddPrinter:_..._successful
lea eax, [esp + 0x174]
push 0x64
push eax
call fcn.00407d80
add esp, 0xc
mov edi, 1
push esi
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
jmp 0x409ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::AddPrinter:_..._failed_with_ErrorCode:___d__
jmp 0x409ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDriverInstaller::AddPrinter:_..._failed_get_SecurityDescriptor_with_ErrorCode:___d__
lea eax, [esp + 0x178]
push 0xc8
push eax
call fcn.00407d80
mov edi, 7
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409cf4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 1
je 0x409d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddPrinter_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
jmp 0x409d33
push str.AddPrinter_success
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
cmp dword [esp + 0x90], 0
je 0x409d51
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0xe0]
call fcn.00405140
lea ecx, [esp + 0xf8]
call fcn.00405140
lea ecx, [esp + 0x390]
call fcn.00405140
lea ecx, [esp + 0x3a8]
call fcn.00405140
lea ecx, [esp + 0x1d8]
call fcn.00405140
lea ecx, [esp + 0x138]
call fcn.00405140
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0x80]
jmp 0x40a774
lea ecx, [esp + 0x80]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea ecx, [esp + 0x138]
call fcn.004051e0
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409e0a
push str.missing_id
jmp 0x409e31
lea eax, [esp + 0x138]
push eax
lea edx, [esp + 0x254]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409e74
push str.missing_inf_name
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
movzx esi, al
lea ecx, [esp + 0x138]
call fcn.00405140
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0x80]
call fcn.00405140
jmp 0x40a794
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x20]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x20]
call fcn.00405140
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x16c]
call fcn.00404510
cmp eax, 1
je 0x409f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InstallPrintDriverFromPackage_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
jmp 0x409f4c
push str.InstallPrintDriverFromPackage_success
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
cmp dword [esp + 0x90], 0
je 0x409f6a
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
jmp 0x409d99
lea ecx, [esp + 0x1d8]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x409ff1
push str.missing_id
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
lea ecx, [esp + 0xc8]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0x1d8]
call fcn.00405140
jmp 0x40a794
lea eax, [esp + 0x1d8]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x164]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x20]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x20]
call fcn.00405140
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0xdc], 8
lea eax, [esp + 0xc8]
cmovae eax, dword [esp + 0xc8]
push eax
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeletePrinterDriverW]
push 0x36
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
push str.CDriverInstaller::RemovePrintDriver__:_PrintUiEntryW__
lea ecx, [esp + 0x88]
movaps xmmword [esp + 0x88], xmm0
mov esi, eax
mov dword [esp + 0x9c], 0
call fcn.004058a0
lea eax, [esp + 0x80]
push eax
xor eax, eax
lea ecx, [esp + 0x168]
cmp esi, 1
sete al
push eax
push 1
call fcn.00404140
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.00405200
cmp esi, 1
je 0x40a123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemovePrintDriver_failed__d
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
jmp 0x40a13a
push str.RemovePrintDriver_success
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
cmp dword [esp + 0x1e8], 0
je 0x40a158
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0x1d8]
jmp 0x40a774
lea ecx, [esp + 0x80]
call fcn.004051e0
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x40a1c3
call fcn.004085f0
lea ecx, [esp + 0x80]
movzx esi, al
call fcn.00405140
jmp 0x40a794
lea ecx, [esp + 0xe0]
call fcn.004051e0
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x2f4]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x40a220
cmp dword [esp + 0xf0], 0
je 0x40a220
call fcn.004085f0
lea ecx, [esp + 0xe0]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0x80]
call fcn.00405140
jmp 0x40a794
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x234]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x40a269
cmp dword [esp + 0xf0], 0
je 0x40a269
push 0x44b3e8
lea ecx, [esp + 0xcc]
call fcn.0040aeb0
cmp dword [esp + 0xb4], 8
lea eax, [esp + 0xa0]
xorps xmm0, xmm0
lea ecx, [esp + 0x138]
cmovae eax, dword [esp + 0xa0]
push eax
movlpd qword [esp + 0x108], xmm0
call fcn.004051a0
cmp dword [esp + 0x14c], 8
lea eax, [esp + 0x138]
push 0xc8
cmovae eax, dword [esp + 0x13c]
lea ecx, [esp + 0x108]
push eax
mov dword [esp + 0x100], 0x44a1d8
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
call fcn.00407c40
cmp byte [esp + 0x7c], 0
je 0x40a2f6
lea ecx, [esp + 0x104]
call fcn.00407d20
lea eax, [esp + 0xc8]
mov dword [esp + 0xf8], 0x44a1e4
push eax
lea ecx, [esp + 0xfc]
call fcn.0040b4e0
lea ecx, [esp + 0x138]
mov dword [esp + 0x108], eax
call fcn.00405140
mov edx, str.enable
lea ecx, [esp + 0xe0]
call fcn.0040b190
test al, al
je 0x40a341
push 1
jmp 0x40a358
mov edx, str.disable
lea ecx, [esp + 0xe0]
call fcn.0040b190
test al, al
je 0x40a364
push 0
lea ecx, [esp + 0xfc]
call fcn.0040b820
push 0x2c
lea eax, [esp + 0x168]
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x20]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x174]
call fcn.00402070
lea ecx, [esp + 0x20]
call fcn.00405140
cmp dword [esp + 0x90], 0
je 0x40a3e1
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x168]
call fcn.00403d50
lea ecx, [esp + 0x164]
call fcn.00402480
mov eax, dword [esp + 0x100]
mov dword [esp + 0xf8], 0x44a1d8
test eax, eax
je 0x40a40a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x104]
call fcn.00407cc0
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0xe0]
call fcn.00405140
lea ecx, [esp + 0x80]
jmp 0x40a774
lea ecx, [esp + 0xe0]
call fcn.004051e0
lea ecx, [esp + 0xc8]
call fcn.004051e0
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x254]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
test al, al
jne 0x40a4b0
push str.missing_inf
lea eax, [esp + 0x7c]
push 0xc8
push eax
call fcn.00407d80
add esp, 0xc
call fcn.004085f0
lea ecx, [esp + 0xc8]
movzx esi, al
call fcn.00405140
lea ecx, [esp + 0xe0]
call fcn.00405140
jmp 0x40a794
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x114]
call fcn.00408290
add esp, 4
lea eax, [esp + 0x138]
push 0x2c
push 0
push eax
call fcn.0041f370
add esp, 0xc
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0x20]
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004051a0
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x148]
call fcn.00402070
lea ecx, [esp + 0x20]
call fcn.00405140
sub edi, 0xc
je 0x40a632
sub edi, 1
jne 0x40a737
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0xe0]
cmp dword [esp + 0xf4], 8
mov dword [esp + 0x18], edi
cmovae ecx, dword [esp + 0xe0]
mov esi, dword [eax + 0x38]
test esi, esi
jne 0x40a56f
mov byte [esp + 0xc], 0
jmp 0x40a58a
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push 0
mov ecx, esi
call dword [0x43d1ac]
call esi
mov edi, eax
mov byte [esp + 0xc], 1
push 0x45
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
push str.CDriverInstaller::UninstallDriverFromPnPStorage:_DiUninstallDriverW__
lea ecx, [esp + 0x88]
movaps xmmword [esp + 0x88], xmm0
mov dword [esp + 0x9c], 0
call fcn.004058a0
lea eax, [esp + 0x80]
push eax
push edi
push dword [esp + 0x14]
lea ecx, [esp + 0x144]
call fcn.00404140
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.00405200
cmp esi, 1
jne 0x40a617
cmp dword [esp + 0x18], 0
mov eax, str.no_restart_requested
mov ecx, str.system_need_to_restart
cmove ecx, eax
lea eax, [esp + 0x144]
push ecx
push str.CDriverInstaller:_Uninstall_driver_from_PnP_storage_succeed___s
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp esi, 1
mov eax, str.Succeed
mov ecx, str.Failed
cmovne eax, ecx
push eax
push str.Uninstall_driver_from_PnP_storage__s
jmp 0x40a722
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0xe0]
xor edi, edi
cmp dword [esp + 0xf4], 8
mov dword [esp + 0x18], edi
cmovae ecx, dword [esp + 0xe0]
mov esi, dword [eax + 0x34]
test esi, esi
jne 0x40a664
mov byte [esp + 0xc], 0
jmp 0x40a67f
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push 0
mov ecx, esi
call dword [0x43d1ac]
call esi
mov edi, eax
mov byte [esp + 0xc], 1
push 0x3f
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
push str.CDriverInstaller::InstallDriverInPnPStorage:_DiInstallDriverW__
lea ecx, [esp + 0x88]
movaps xmmword [esp + 0x88], xmm0
mov dword [esp + 0x9c], 0
call fcn.004058a0
lea eax, [esp + 0x80]
push eax
push edi
push dword [esp + 0x14]
lea ecx, [esp + 0x144]
call fcn.00404140
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.00405200
cmp esi, 1
jne 0x40a70c
cmp dword [esp + 0x18], 0
mov eax, str.no_restart_requested
mov ecx, str.system_need_to_restart
cmove ecx, eax
lea eax, [esp + 0x144]
push ecx
push str.CDriverInstaller:_Install_driver_to_PnP_storage_succeed___s
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp esi, 1
mov eax, str.Succeed
mov ecx, str.Failed
cmovne eax, ecx
push eax
push str.Install_driver_in_PnP_storage__s
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00407d80
add esp, 0x10
cmp dword [esp + 0xd8], 0
je 0x40a755
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x13c]
call fcn.00403d50
lea ecx, [esp + 0x138]
call fcn.00402480
lea ecx, [esp + 0xc8]
call fcn.00405140
lea ecx, [esp + 0xe0]
call fcn.00405140
push str.Loader_shutdown...
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.00407d80
add esp, 0xc
call fcn.0041a430
xor esi, esi
mov eax, dword [esp + 0x4b4]
test eax, eax
je 0x40a7a6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x4b0]
test eax, eax
je 0x40a7b8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x4ac]
test eax, eax
je 0x40a7ca
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x40a7dc
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x4a4]
test eax, eax
je 0x40a7ee
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x4a0]
test eax, eax
je 0x40a800
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x204]
mov edi, dword [esp + 0x1b0]
cmp ecx, 8
jb 0x40a849
mov edx, dword [esp + 0x1f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a83f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
xor eax, eax
mov dword [esp + 0x200], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x204], 7
mov word [esp + 0x1f0], ax
call fcn.00407cc0
mov ecx, dword [esp + 0x224]
cmp ecx, 8
jb 0x40a8b4
mov edx, dword [esp + 0x210]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 7
mov word [esp + 0x210], ax
cmp ecx, 8
jb 0x40a916
mov edx, dword [esp + 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a90c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x3d4]
xor eax, eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
cmp ecx, 8
jb 0x40a978
mov edx, dword [esp + 0x3c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a96e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x3f4]
cmp ecx, 8
jb 0x40a9ba
mov edx, dword [esp + 0x3e0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x2a4]
cmp ecx, 8
jb 0x40a9fc
mov edx, dword [esp + 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x2c4]
cmp ecx, 8
jb 0x40aa3e
mov edx, dword [esp + 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x2e4]
cmp ecx, 8
jb 0x40aa80
mov edx, dword [esp + 0x2d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x434]
cmp ecx, 8
jb 0x40aac2
mov edx, dword [esp + 0x420]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aab8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x414]
cmp ecx, 8
jb 0x40ab04
mov edx, dword [esp + 0x400]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aafa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x304]
cmp ecx, 8
jb 0x40ab46
mov edx, dword [esp + 0x2f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x284]
cmp ecx, 8
jb 0x40ab88
mov edx, dword [esp + 0x270]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x1a4]
cmp ecx, 8
jb 0x40abca
mov edx, dword [esp + 0x190]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40abc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x244]
cmp ecx, 8
jb 0x40ac0c
mov edx, dword [esp + 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x264]
cmp ecx, 8
jb 0x40ac4e
mov edx, dword [esp + 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov eax, dword [esp + 0x1c4]
cmp eax, 8
jb 0x40ac89
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40ac7f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edi
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x324]
cmp ecx, 8
jb 0x40accb
mov edx, dword [esp + 0x310]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40acc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x344]
cmp ecx, 8
jb 0x40ad0d
mov edx, dword [esp + 0x330]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ad03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x364]
cmp ecx, 8
jb 0x40ad4f
mov edx, dword [esp + 0x350]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ad45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x384]
cmp ecx, 8
jb 0x40ad8d
mov edx, dword [esp + 0x370]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ad83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x124]
cmp ecx, 8
jb 0x40adcb
mov edx, dword [esp + 0x110]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40adc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ade3
push ecx
push edx
call fcn.0041d595
add esp, 8
mov ecx, dword [esp + 0x4bc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041d1ec
mov esp, ebp
pop ebp
ret 0x10
call fcn.004268a9
je 0x40ad7b
inc eax
add byte [ebx], cl
xchg edx, eax
inc eax
add byte [ebx], cl
xchg edx, eax
inc eax
add byte [ebx], cl
xchg edx, eax
inc eax
add byte [edx], bh
xchg ebp, eax
inc eax
add byte [esi + edx*4], dh
inc eax
add byte [edi + edx*4 - 0x66daffc0], dl
inc eax
add byte [ebp + 0x7b00409d], bh
lahf
inc eax
add byte [ecx + 0x40], bh
add byte [edx], bh
movsb byte es:[edi], byte [esi]
inc eax
add byte [edx], bh
movsb byte es:[edi], byte [esi]
inc eax
add ah, cl
int3