Function at 0x407d20
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x4344c8]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x1cc], 7
xor eax, eax
mov dword [esp + 0x1c8], 0
mov word [esp + 0x1b8], ax
cmp word [edx], ax
jne 0x407d6e
xor ecx, ecx
jmp 0x407d82
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d73
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c0]
call fcn.00403b50
push 8
xor eax, eax
mov dword [esp + 0x330], 7
push str.__action
lea ecx, [esp + 0x320]
mov dword [esp + 0x330], 0
mov word [esp + 0x320], ax
call fcn.00403b50
push 5
xor eax, eax
mov dword [esp + 0x300], 7
push str.__log
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x300], 0
mov word [esp + 0x2f0], ax
call fcn.00403b50
push 0xa
xor eax, eax
mov dword [esp + 0x2d0], 7
push str.__deferlog
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x2d0], 0
mov word [esp + 0x2c0], ax
call fcn.00403b50
push 9
xor eax, eax
mov dword [esp + 0x360], 7
push str.__verbose
lea ecx, [esp + 0x350]
mov dword [esp + 0x360], 0
mov word [esp + 0x350], ax
call fcn.00403b50
push 9
xor eax, eax
mov dword [esp + 0x258], 7
push str.__elevate
lea ecx, [esp + 0x248]
mov dword [esp + 0x258], 0
mov word [esp + 0x248], ax
call fcn.00403b50
push 5
xor eax, eax
mov dword [esp + 0x288], 7
push str.__inf
lea ecx, [esp + 0x278]
mov dword [esp + 0x288], 0
mov word [esp + 0x278], ax
call fcn.00403b50
push 4
xor eax, eax
mov dword [esp + 0x240], 7
push str.__id
lea ecx, [esp + 0x230]
mov dword [esp + 0x240], 0
mov word [esp + 0x230], ax
call fcn.00403b50
push 7
xor eax, eax
mov dword [esp + 0x228], 7
push str.__event
lea ecx, [esp + 0x218]
mov dword [esp + 0x228], 0
mov word [esp + 0x218], ax
call fcn.00403b50
push 6
xor eax, eax
mov dword [esp + 0x318], 7
push str.__port
lea ecx, [esp + 0x308]
mov dword [esp + 0x318], 0
mov word [esp + 0x308], ax
call fcn.00403b50
xor eax, eax
mov dword [esp + 0x2b4], 7
mov dword [esp + 0x2b0], 0
mov word [esp + 0x2a0], ax
push 8
push str.__source
lea ecx, [esp + 0x2a8]
call fcn.00403b50
push 5
xor eax, eax
mov dword [esp + 0x270], 7
push str.__dll
lea ecx, [esp + 0x260]
mov dword [esp + 0x270], 0
mov word [esp + 0x260], ax
call fcn.00403b50
push 4
xor eax, eax
mov dword [esp + 0x2e8], 7
push str.__oa
lea ecx, [esp + 0x2d8]
mov dword [esp + 0x2e8], 0
mov word [esp + 0x2d8], ax
call fcn.00403b50
xor eax, eax
mov dword [esp + 0x1b4], 7
mov word [esp + 0x1a0], ax
lea edx, [esp + 0x2e8]
lea eax, [esp + 0x1a0]
mov dword [esp + 0x1b0], 0
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x408049
push 0x16
push str.TeamViewer10_Hooks.log
lea ecx, [esp + 0x1a8]
call fcn.00403b50
xor eax, eax
mov dword [esp + 0x29c], 7
mov word [esp + 0x288], ax
lea edx, [esp + 0x2b8]
lea eax, [esp + 0x288]
mov dword [esp + 0x298], 0
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
lea edx, [esp + 0x348]
test al, al
lea ecx, [esp + 0x1b8]
lea eax, [esp + 0x288]
sete byte [esp + 0xc]
push eax
call fcn.00407450
movzx ebx, al
add esp, 4
mov eax, dword [esp + 0x1a0]
neg ebx
mov dword [esp + 0x158], 0
sbb ebx, ebx
and ebx, 0xffffff9c
add ebx, 0xc8
cmp dword [esp + 0x1b4], 8
jae 0x4080df
lea eax, [esp + 0x1a0]
push ebx
push eax
lea ecx, [esp + 0x160]
call fcn.00406300
cmp byte [esp + 0xc], 0
je 0x408100
lea ecx, [esp + 0x158]
call fcn.004063f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Loader_started_with:__s
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
xor eax, eax
mov dword [esp + 0x354], 7
mov word [esp + 0x340], ax
lea edx, [esp + 0x328]
lea eax, [esp + 0x340]
mov dword [esp + 0x350], 0
push eax
lea ecx, [esp + 0x1cc]
call fcn.00407450
add esp, 0x14
test al, al
jne 0x408181
push str.Type_missing_in_command_line
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
xor esi, esi
jmp 0x408a27
push 0x5c
lea eax, [esp + 0x364]
push 0
push eax
call fcn.00417410
add esp, 0xc
lea ecx, [esp + 0x360]
call fcn.00405000
lea ecx, [esp + 0x330]
call fcn.004076d0
mov esi, eax
lea edx, [esp + 0x240]
lea eax, [esp + 0x288]
mov dword [esp + 0x1ec], esi
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407450
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test al, al
je 0x4085f3
mov dword [esp + 0x118], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x364]
test ecx, ecx
je 0x4085c6
lea edx, [esp + 0x118]
push edx
push 0x10000000
push eax
call ecx
test eax, eax
je 0x4085c6
mov eax, dword [esp + 0x360]
mov dword [esp + 0x20c], 0
test eax, eax
je 0x4089d9
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0
push 0x14
push dword [esp + 0x128]
call eax
call edi
cmp eax, 0x7a
je 0x408264
cmp eax, 0x18
je 0x408264
call edi
push eax
push str.GetTokenInformation_1__failed__d
jmp 0x4085d2
mov eax, dword [esp + 0x20c]
push eax
mov dword [esp + 0x1ec], eax
call fcn.0040fbba
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x360]
mov dword [esp + 0x208], esi
test eax, eax
je 0x4085bc
lea ecx, [esp + 0x20c]
push ecx
push dword [esp + 0x1ec]
push esi
push 0x14
push dword [esp + 0x128]
call eax
test eax, eax
je 0x4085bc
push dword [esp + 0x208]
mov esi, dword [esi]
call fcn.00414346
add esp, 4
test esi, esi
jne 0x4085ec
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x18c]
call fcn.0040a380
push 2
push esi
push 0x430b24
lea ecx, [esp + 0x194]
call fcn.004035b0
mov esi, eax
lea ecx, [esp + 0x188]
push esi
push 0
lea eax, [esp + 0x1d8]
push eax
call fcn.0040a400
push esi
push 0
lea ecx, [esp + 0x190]
call fcn.00404030
cmp dword [esp + 0x254], 8
mov ecx, dword [esp + 0x240]
jae 0x408337
lea ecx, [esp + 0x240]
mov eax, dword [esp + 0x250]
push eax
push eax
push 0
push ecx
lea ecx, [esp + 0x198]
call fcn.004035b0
push eax
lea ecx, [esp + 0x190]
call fcn.00404030
push 1
push 0
lea eax, [esp + 0x1f0]
mov dword [esp + 0x1f0], 0x22
push eax
lea ecx, [esp + 0x1dc]
call fcn.004035b0
cmp eax, 0xffffffff
je 0x4083bc
mov dword [esp + 0x1e8], 0x22
nop
push 1
push eax
lea ecx, [esp + 0x1d8]
call fcn.00404030
push 1
push 0
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x1dc]
call fcn.004035b0
cmp eax, 0xffffffff
jne 0x408390
sub esp, 8
mov dword [esp + 0x210], 0x20
lea eax, [esp + 0x210]
lea ecx, [esp + 0x1d8]
push eax
call fcn.0040b060
cmp eax, 0xffffffff
je 0x4083f1
inc eax
lea ecx, [esp + 0x1d0]
push eax
call fcn.00403ff0
push 0x3c
lea eax, [esp + 0x120]
push 0
push eax
call fcn.00417410
mov eax, dword [esp + 0x1dc]
add esp, 0xc
cmp dword [esp + 0x1e4], 8
mov dword [esp + 0x11c], 0x3c
mov dword [esp + 0x128], str.runas
jae 0x408433
lea eax, [esp + 0x1d0]
cmp dword [esp + 0x19c], 8
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x188]
jae 0x408452
lea eax, [esp + 0x188]
mov dword [esp + 0x130], eax
lea eax, [esp + 0x11c]
push eax
mov dword [esp + 0x13c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40859f
call edi
push eax
push str.ShellExecuteEx___failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
mov eax, dword [esp + 0x1fc]
add esp, 0x10
cmp eax, 2
je 0x4084b6
cmp eax, 3
je 0x4084b6
cmp eax, 4
je 0x4084b6
cmp eax, 5
jne 0x40859f
xor eax, eax
mov dword [esp + 0x184], 7
mov word [esp + 0x170], ax
lea edx, [esp + 0x210]
lea eax, [esp + 0x170]
mov dword [esp + 0x180], 0
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
je 0x408593
xor eax, eax
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x408539
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x1f4]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x1f8]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x170]
call fcn.004034f0
lea ecx, [esp + 0x1d0]
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
jmp 0x4089d9
call edi
push eax
push str.GetTokenInformation_2__failed__d
jmp 0x4085d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken___failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x4089d9
mov esi, dword [esp + 0x1ec]
lea eax, [esi - 1]
cmp eax, 0xc
ja case.default.0x4085ff
jmp dword [eax*4 + 0x409df0]
xor eax, eax
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x1a0]
jae 0x40864a
lea eax, [esp + 0x1a0]
push dword [esp + 0xc]
lea ecx, [esp + 0x18c]
push ebx
push eax
call fcn.00405a50
lea ecx, [esp + 0x188]
call fcn.00405bc0
lea ecx, [esp + 0x188]
mov esi, eax
call fcn.00405ae0
jmp 0x4089db
xor eax, eax
mov dword [esp + 0x19c], 7
mov word [esp + 0x188], ax
lea edx, [esp + 0x228]
mov dword [esp + 0x1e0], eax
lea ecx, [esp + 0x1b8]
mov word [esp + 0x1d0], ax
mov dword [esp + 0x180], eax
mov word [esp + 0x170], ax
lea eax, [esp + 0x1d0]
push eax
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1e8], 7
mov dword [esp + 0x188], 7
call fcn.00407450
add esp, 4
test al, al
jne 0x4086f8
push str.missing_id
jmp 0x408749
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
lea edx, [esp + 0x210]
mov bl, al
lea ecx, [esp + 0x1b8]
lea eax, [esp + 0x170]
push eax
call fcn.00407450
add esp, 4
test bl, bl
jne 0x408763
cmp esi, 2
je 0x408744
cmp esi, 3
jne 0x408763
push str.missing_inf
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
jmp 0x408593
xor eax, eax
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x4087a0
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xbc]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xc0]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0xb8]
call fcn.004034f0
sub esi, 2
je 0x4088f9
dec esi
je 0x408817
dec esi
jne 0x408974
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x160]
call fcn.00401a20
cmp eax, 1
je 0x408974
call edi
push eax
push str.Remove_failed__d
jmp 0x40895f
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x164]
call fcn.00401900
mov esi, eax
cmp esi, 1
je 0x408857
call edi
push eax
push str.Update_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
cmp esi, 3
jne 0x408974
push str.DevInst_not_found__attempting_Rescan
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x15c]
call fcn.004022e0
cmp eax, 1
jne 0x4088ef
push str.Rescan_successful__attempting_Update
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x15c]
push eax
lea eax, [esp + 0x18c]
push eax
call fcn.00401900
cmp eax, 1
jne 0x4088e5
push str.Update_successful
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
jmp 0x408974
call edi
push eax
push str.Update_failed__d
jmp 0x40895f
call edi
push eax
push str.Rescan_failed__d
jmp 0x40895f
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x164]
call fcn.004014e0
mov esi, eax
cmp esi, 1
je 0x408974
call edi
push eax
push str.Install_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
cmp esi, 6
jne 0x408974
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x160]
call fcn.00402630
cmp eax, 1
je 0x408974
call edi
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
cmp dword [esp + 0x180], 0
je 0x408992
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x170]
call fcn.004034f0
lea ecx, [esp + 0x1d0]
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
push str.Loader_shutdown...
lea eax, [esp + 0x15c]
push 0x64
push eax
call fcn.00406450
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x3b8]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4089ef
push eax
call edi
mov eax, dword [esp + 0x3b4]
test eax, eax
je 0x4089fd
push eax
call edi
mov eax, dword [esp + 0x3b0]
test eax, eax
je 0x408a0b
push eax
call edi
mov eax, dword [esp + 0x3ac]
test eax, eax
je 0x408a19
push eax
call edi
mov eax, dword [esp + 0x3a8]
test eax, eax
je 0x408a27
push eax
call edi
cmp dword [esp + 0x344], 8
jb 0x408a40
push dword [esp + 0x330]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x344], 7
lea ecx, [esp + 0x158]
mov dword [esp + 0x340], 0
mov word [esp + 0x330], ax
call fcn.00406390
cmp dword [esp + 0x29c], 8
jb 0x408a85
push dword [esp + 0x288]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x29c], 7
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x298], 0
mov word [esp + 0x288], ax
jb 0x408abe
push dword [esp + 0x1a0]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x1b4], 7
cmp dword [esp + 0x2e4], 8
mov dword [esp + 0x1b0], 0
mov word [esp + 0x1a0], ax
jb 0x408af7
push dword [esp + 0x2d0]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x2e4], 7
cmp dword [esp + 0x26c], 8
mov dword [esp + 0x2e0], 0
mov word [esp + 0x2d0], ax
jb 0x408b30
push dword [esp + 0x258]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x26c], 7
cmp dword [esp + 0x2b4], 8
mov dword [esp + 0x268], 0
mov word [esp + 0x258], ax
jb 0x408b69
push dword [esp + 0x2a0]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x2b4], 7
cmp dword [esp + 0x314], 8
mov dword [esp + 0x2b0], 0
mov word [esp + 0x2a0], ax
jb 0x408ba2
push dword [esp + 0x300]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x314], 7
cmp dword [esp + 0x224], 8
mov dword [esp + 0x310], 0
mov word [esp + 0x300], ax
jb 0x408bdb
push dword [esp + 0x210]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x224], 7
cmp dword [esp + 0x23c], 8
mov dword [esp + 0x220], 0
mov word [esp + 0x210], ax
jb 0x408c14
push dword [esp + 0x228]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x23c], 7
cmp dword [esp + 0x284], 8
mov dword [esp + 0x238], 0
mov word [esp + 0x228], ax
jb 0x408c4d
push dword [esp + 0x270]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x284], 7
cmp dword [esp + 0x254], 8
mov dword [esp + 0x280], 0
mov word [esp + 0x270], ax
jb 0x408c86
push dword [esp + 0x240]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x254], 7
cmp dword [esp + 0x35c], 8
mov dword [esp + 0x250], 0
mov word [esp + 0x240], ax
jb 0x408cbf
push dword [esp + 0x348]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x35c], 7
cmp dword [esp + 0x2cc], 8
mov dword [esp + 0x358], 0
mov word [esp + 0x348], ax
jb 0x408cf8
push dword [esp + 0x2b8]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x2cc], 7
cmp dword [esp + 0x2fc], 8
mov dword [esp + 0x2c8], 0
mov word [esp + 0x2b8], ax
jb 0x408d31
push dword [esp + 0x2e8]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x2fc], 7
cmp dword [esp + 0x32c], 8
mov dword [esp + 0x2f8], 0
mov word [esp + 0x2e8], ax
jb 0x408d6a
push dword [esp + 0x318]
call fcn.0041436d
add esp, 4
xor eax, eax
mov dword [esp + 0x32c], 7
cmp dword [esp + 0x1cc], 8
mov dword [esp + 0x328], 0
mov word [esp + 0x318], ax
jb 0x408da3
push dword [esp + 0x1b8]
call fcn.0041436d
add esp, 4
mov ecx, dword [esp + 0x474]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413990
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x184], 7
mov word [esp + 0x170], ax
lea edx, [esp + 0x210]
lea eax, [esp + 0x170]
mov dword [esp + 0x180], 0
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x408e37
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x8c]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x90]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x88]
call fcn.004034f0
lea ecx, [esp + 0x15c]
call fcn.004022e0
cmp eax, 1
je 0x408e9f
call edi
push eax
push str.Rescan_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
cmp dword [esp + 0x180], 0
je 0x408ebd
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x170]
jmp 0x4089bd
xor eax, eax
mov dword [esp + 0x19c], 7
mov word [esp + 0x188], ax
lea edx, [esp + 0x228]
mov dword [esp + 0x180], eax
lea ecx, [esp + 0x1b8]
mov word [esp + 0x170], ax
lea eax, [esp + 0x188]
push eax
mov dword [esp + 0x19c], 0
mov dword [esp + 0x188], 7
call fcn.00407450
add esp, 4
test al, al
jne 0x408f68
push str.missing_id
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x170]
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
jmp 0x4089d9
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x408fc3
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x14]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x10]
call fcn.004034f0
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x160]
call fcn.00402630
cmp eax, 1
je 0x40902a
call edi
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
cmp dword [esp + 0x180], 0
je 0x409048
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x170]
jmp 0x4089b1
xor eax, eax
mov dword [esp + 0x184], 7
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x180], 0
mov word [esp + 0x170], ax
mov dword [esp + 0x19c], 7
mov dword [esp + 0x198], eax
mov word [esp + 0x188], ax
call fcn.004033d0
lea eax, [esp + 0x188]
mov dword [esp + 0x1ec], 0
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x4090da
push str.missing_id
jmp 0x409101
lea eax, [esp + 0x1d0]
push eax
lea edx, [esp + 0x304]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x40913f
push str.missing_port_on_AddPortMonitor
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
lea ecx, [esp + 0x1dc]
add esp, 0xc
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x170]
call fcn.004034f0
jmp 0x4089d9
push 0xb0
lea eax, [esp + 0x3c4]
push 0
push eax
call fcn.00417410
add esp, 4
lea ecx, [esp + 0x3c8]
call fcn.0040a440
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x3d0]
call fcn.0040e5e0
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x3c4]
call fcn.00409e90
lea ecx, [esp + 0x3c0]
call fcn.00409e30
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x4091f0
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x28]
call fcn.004034f0
push dword [esp + 0x1ec]
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x164]
call fcn.00402820
cmp eax, 1
je 0x409260
call edi
push eax
push str.AddPortMonitor_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x40927a
push str.AddPortMonitor_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x409298
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x1d0]
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x170]
jmp 0x4089bd
lea ecx, [esp + 0x170]
call fcn.004033d0
lea ecx, [esp + 0x188]
call fcn.004033d0
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409339
push str.missing_id
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x170]
call fcn.004034f0
jmp 0x4089d9
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x409394
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x74]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x78]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x70]
call fcn.004034f0
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x160]
call fcn.004029f0
cmp eax, 1
je 0x4093fd
call edi
push eax
push str.DeletePortMonitor_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x409417
push str.DeletePortMonitor_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x409435
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x170]
jmp 0x4089bd
lea ecx, [esp + 0x170]
call fcn.004033d0
lea ecx, [esp + 0x1f0]
call fcn.004033d0
lea ecx, [esp + 0x1d0]
call fcn.004033d0
lea ecx, [esp + 0x188]
call fcn.004033d0
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x4094b2
push str.missing_id
jmp 0x409502
lea eax, [esp + 0x1d0]
push eax
lea edx, [esp + 0x25c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x4094db
push str.missing_dll_name
jmp 0x409502
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x40954c
push str.missing_source
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x1d0]
call fcn.004034f0
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea ecx, [esp + 0x170]
call fcn.004034f0
jmp 0x4089d9
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x4095a7
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xa4]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xa8]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0xa0]
call fcn.004034f0
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x1d4]
push eax
lea eax, [esp + 0x1f8]
push eax
lea ecx, [esp + 0x168]
call fcn.00402b60
cmp eax, 1
je 0x409629
call edi
push eax
push str.InstallPrintProcessor_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x409643
push str.InstallPrintProcessor_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x409661
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x188]
call fcn.004034f0
lea ecx, [esp + 0x1d0]
call fcn.004034f0
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea ecx, [esp + 0x170]
jmp 0x4089bd
push str.RemovePrintProcessor
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x170]
call fcn.004033d0
lea ecx, [esp + 0x188]
call fcn.004033d0
lea ecx, [esp + 0x1f0]
call fcn.004033d0
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409704
push str.missing_id
jmp 0x40972b
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x25c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409749
push str.missing_dll_name
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
lea ecx, [esp + 0x1fc]
jmp 0x40911a
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x4097a4
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xd4]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xd8]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0xd0]
call fcn.004034f0
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x164]
call fcn.00402cd0
cmp eax, 1
je 0x40981e
call edi
push eax
push str.RemovePrintProcessor_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x409838
push str.RemovePrintProcessor_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x409856
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x1f0]
jmp 0x4092ab
lea ecx, [esp + 0x170]
call fcn.004033d0
lea ecx, [esp + 0x188]
call fcn.004033d0
lea ecx, [esp + 0x1f0]
call fcn.004033d0
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x4098be
push str.missing_id
jmp 0x40972b
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x4098ea
push str.missing_inf_name
jmp 0x40972b
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x409945
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x104]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x108]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x100]
call fcn.004034f0
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x164]
call fcn.00402fa0
cmp eax, 1
je 0x4099bf
call edi
push eax
push str.InstallPrintDriver_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x4099d9
push str.InstallPrintDriver_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x4099f7
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x1f0]
jmp 0x4092ab
lea ecx, [esp + 0x170]
call fcn.004033d0
lea ecx, [esp + 0x1f0]
call fcn.004033d0
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409a80
push str.missing_id
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea ecx, [esp + 0x170]
call fcn.004034f0
jmp 0x4089d9
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
xor eax, eax
add esp, 4
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x409adb
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x5c]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x60]
push ecx
push eax
lea ecx, [esp + 0x16c]
call fcn.00401380
lea ecx, [esp + 0x58]
call fcn.004034f0
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x160]
call fcn.00403290
cmp eax, 1
je 0x409b44
call edi
push eax
push str.RemovePrintDriver_failed__d
lea eax, [esp + 0x160]
push 0xc8
push eax
call fcn.00406450
add esp, 0x10
jmp 0x409b5e
push str.RemovePrintDriver_success
lea eax, [esp + 0x15c]
push 0xc8
push eax
call fcn.00406450
add esp, 0xc
cmp dword [esp + 0x180], 0
je 0x409b7c
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x160]
call fcn.004023b0
lea ecx, [esp + 0x15c]
call fcn.00401490
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea ecx, [esp + 0x170]
jmp 0x4089bd
lea ecx, [esp + 0x188]
call fcn.004033d0
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
je 0x4085ab
lea ecx, [esp + 0x170]
call fcn.004033d0
lea eax, [esp + 0x170]
push eax
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409c27
cmp dword [esp + 0x180], 0
je 0x409c27
lea ecx, [esp + 0x170]
call fcn.004034f0
lea ecx, [esp + 0x188]
call fcn.004034f0
jmp 0x4089d9
lea ecx, [esp + 0x1f0]
call fcn.004033d0
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1bc]
call fcn.00407450
add esp, 4
test al, al
jne 0x409c70
cmp dword [esp + 0x180], 0
je 0x409c70
push 0x4310bc
lea ecx, [esp + 0x1f4]
call fcn.0040a3b0
xor eax, eax
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x1a0]
jae 0x409cad
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xec]
call fcn.00403420
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x1f0]
push eax
push esi
push ecx
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x16c]
call fcn.0040f260
lea ecx, [esp + 0xe8]
call fcn.004034f0
mov edx, str.enable
lea ecx, [esp + 0x170]
call fcn.0040e8c0
test al, al
je 0x409d0b
lea ecx, [esp + 0x15c]
call fcn.0040f330
jmp 0x409d2c
mov edx, str.disable
lea ecx, [esp + 0x170]
call fcn.0040e8c0
test al, al
je 0x409d2c
lea ecx, [esp + 0x15c]
call fcn.0040f3c0
xor eax, eax
cmp dword [esp + 0x1b4], 8
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x1d8], eax
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x1a0]
jae 0x409d69
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x44]
call fcn.00403420
lea eax, [esp + 0x360]
push eax
push esi
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1e0]
call fcn.00401380
lea ecx, [esp + 0x40]
call fcn.004034f0
cmp dword [esp + 0x198], 0
je 0x409db5
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x1d4]
call fcn.004023b0
lea ecx, [esp + 0x1d0]
call fcn.00401490
lea ecx, [esp + 0x15c]
mov dword [esp + method.tvhooks::PluginManager.virtual_0], vtable.tvhooks::PluginManager.0
call fcn.00404970
lea ecx, [esp + 0x1f0]
call fcn.004034f0
lea ecx, [esp + 0x170]
jmp 0x4089b1