Function at 0x40b0c0
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, 0x49c
mov eax, dword [0x4394c8]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
call esi
mov edx, eax
mov dword [esp + 0x1dc], 7
xor eax, eax
mov dword [esp + 0x1d8], 0
mov word [esp + 0x1c8], ax
cmp word [edx], ax
jne 0x40b110
xor ecx, ecx
jmp 0x40b124
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b115
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1d0]
call fcn.004024d0
push 8
xor eax, eax
mov dword [esp + 0x390], 7
push str.__action
lea ecx, [esp + 0x380]
mov dword [esp + 0x390], 0
mov word [esp + 0x380], ax
call fcn.004024d0
push 5
xor eax, eax
mov dword [esp + 0x348], 7
push str.__log
lea ecx, [esp + 0x338]
mov dword [esp + 0x348], 0
mov word [esp + 0x338], ax
call fcn.004024d0
push 0xa
xor eax, eax
mov dword [esp + 0x378], 7
push str.__deferlog
lea ecx, [esp + 0x368]
mov dword [esp + 0x378], 0
mov word [esp + 0x368], ax
call fcn.004024d0
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.004024d0
push 9
xor eax, eax
mov dword [esp + 0x288], 7
push str.__elevate
lea ecx, [esp + 0x278]
mov dword [esp + 0x288], 0
mov word [esp + 0x278], ax
call fcn.004024d0
push 5
xor eax, eax
mov dword [esp + 0x2e8], 7
push str.__inf
lea ecx, [esp + 0x2d8]
mov dword [esp + 0x2e8], 0
mov word [esp + 0x2d8], ax
call fcn.004024d0
push 4
xor eax, eax
mov dword [esp + 0x244], 7
push str.__id
lea ecx, [esp + 0x234]
mov dword [esp + 0x244], 0
mov word [esp + 0x234], ax
call fcn.004024d0
push 7
xor eax, eax
mov dword [esp + 0x22c], 7
push str.__event
lea ecx, [esp + 0x21c]
mov dword [esp + 0x22c], 0
mov word [esp + 0x21c], ax
call fcn.004024d0
push 6
xor eax, eax
mov dword [esp + 0x300], 7
push str.__port
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x300], 0
mov word [esp + 0x2f0], ax
call fcn.004024d0
xor eax, eax
mov dword [esp + 0x314], 7
mov dword [esp + 0x310], 0
mov word [esp + 0x300], ax
push 8
push str.__source
lea ecx, [esp + 0x308]
call fcn.004024d0
push 5
xor eax, eax
mov dword [esp + 0x2b8], 7
push str.__dll
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x2b8], 0
mov word [esp + 0x2a8], ax
call fcn.004024d0
push 4
xor eax, eax
mov dword [esp + 0x330], 7
push str.__oa
lea ecx, [esp + 0x320]
mov dword [esp + 0x330], 0
mov word [esp + 0x320], ax
call fcn.004024d0
xor eax, eax
mov dword [esp + 0x1ac], 7
mov word [esp + 0x198], ax
lea edx, [esp + 0x330]
lea eax, [esp + 0x198]
mov dword [esp + 0x1a8], 0
push eax
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40b3eb
push 0x16
push str.TeamViewer11_Hooks.log
lea ecx, [esp + 0x1a0]
call fcn.004024d0
xor eax, eax
mov dword [esp + 0x2cc], 7
mov word [esp + 0x2b8], ax
lea edx, [esp + 0x360]
lea eax, [esp + 0x2b8]
mov dword [esp + 0x2c8], 0
push eax
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea edx, [esp + 0x348]
test al, al
lea ecx, [esp + 0x1c8]
lea eax, [esp + 0x2b8]
sete bl
push eax
mov byte [esp + 0x10], bl
call fcn.0040ae40
mov ecx, dword [esp + 0x19c]
add esp, 4
movzx eax, al
neg eax
mov dword [esp + 0x160], 0
sbb eax, eax
and eax, 0xffffff9c
add eax, 0xc8
cmp dword [esp + 0x1ac], 8
mov dword [esp + 0x10], eax
jae 0x40b486
lea ecx, [esp + 0x198]
push eax
push ecx
lea ecx, [esp + 0x168]
call fcn.00409ca0
test bl, bl
je 0x40b4a4
lea ecx, [esp + 0x160]
call fcn.00409d90
call esi
push eax
push str.Loader_started_with:__ls
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
xor eax, eax
mov dword [esp + 0x2ac], 7
mov word [esp + 0x298], ax
lea edx, [esp + 0x388]
lea eax, [esp + 0x298]
mov dword [esp + 0x2a8], 0
push eax
lea ecx, [esp + 0x1dc]
call fcn.0040ae40
add esp, 0x14
test al, al
jne 0x40b521
push str.Type_missing_in_command_line
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
xor esi, esi
jmp 0x40bdec
push 0x5c
lea eax, [esp + 0x394]
push 0
push eax
call fcn.0041a7e0
add esp, 0xc
lea ecx, [esp + 0x390]
call fcn.00408af0
lea eax, [esp + 0x288]
push eax
call fcn.0040f460
mov ecx, dword [0x43bc18]
mov esi, eax
cmp esi, ecx
je 0x40b58f
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x40b568
mov eax, dword [eax]
push ecx
push eax
push dword [esp + 0x2a0]
push ecx
lea ecx, [esp + 0x298]
call fcn.00403fa0
mov ecx, dword [0x43bc18]
mov dword [esp + 0x164], esi
test eax, eax
jns 0x40b596
mov dword [esp + 0x164], ecx
lea eax, [esp + 0x164]
mov eax, dword [eax]
cmp ecx, eax
jne 0x40b5a7
xor ebx, ebx
jmp 0x40b5aa
mov ebx, dword [eax + 0x28]
lea eax, [esp + 0x2b8]
mov dword [esp + 0x164], ebx
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test al, al
je 0x40b9c8
mov dword [esp + 0x120], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x394]
test ecx, ecx
je 0x40b9a2
lea edx, [esp + 0x120]
push edx
push 0x10000000
push eax
call ecx
test eax, eax
je 0x40b9a2
mov eax, dword [esp + 0x390]
mov dword [esp + 0x20c], 0
test eax, eax
je 0x40bd9e
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0
push 0x14
push dword [esp + 0x130]
call eax
call edi
cmp eax, 0x7a
je 0x40b65f
cmp eax, 0x18
je 0x40b65f
call edi
push eax
push str.GetTokenInformation_1__failed__d
jmp 0x40b9ae
mov eax, dword [esp + 0x20c]
push eax
mov dword [esp + 0x18], eax
call fcn.00412eda
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x390]
mov dword [esp + 0x210], esi
test eax, eax
je 0x40b998
lea ecx, [esp + 0x20c]
push ecx
push dword [esp + 0x18]
push esi
push 0x14
push dword [esp + 0x130]
call eax
test eax, eax
je 0x40b998
push dword [esp + 0x210]
mov esi, dword [esi]
call fcn.004177db
add esp, 4
test esi, esi
jne 0x40b9c8
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x184]
call fcn.00404020
push 2
push esi
push 0x43538c
lea ecx, [esp + 0x18c]
call fcn.00407120
mov esi, eax
lea ecx, [esp + 0x180]
push esi
push 0
lea eax, [esp + 0x1b8]
push eax
call fcn.00407200
push esi
push 0
lea ecx, [esp + 0x188]
call fcn.004030f0
cmp dword [esp + 0x284], 8
mov ecx, dword [esp + 0x270]
jae 0x40b72c
lea ecx, [esp + 0x270]
mov eax, dword [esp + 0x280]
push eax
push eax
push 0
push ecx
lea ecx, [esp + 0x190]
call fcn.00407120
push eax
lea ecx, [esp + 0x188]
call fcn.004030f0
push 1
push 0
lea eax, [esp + 0x16c]
mov dword [esp + 0x16c], 0x22
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407120
cmp eax, 0xffffffff
je 0x40b7b0
mov dword [esp + 0x164], 0x22
push 1
push eax
lea ecx, [esp + 0x1b8]
call fcn.004030f0
push 1
push 0
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x1bc]
call fcn.00407120
cmp eax, 0xffffffff
jne 0x40b784
sub esp, 8
mov dword [esp + 0x218], 0x20
lea eax, [esp + 0x218]
lea ecx, [esp + 0x1b8]
push eax
call fcn.0040e380
cmp eax, 0xffffffff
je 0x40b7e5
inc eax
lea ecx, [esp + 0x1b0]
push eax
call fcn.004030b0
push 0x3c
lea eax, [esp + 0x128]
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1bc]
add esp, 0xc
cmp dword [esp + 0x1c4], 8
mov dword [esp + 0x124], 0x3c
mov dword [esp + 0x130], str.runas
jae 0x40b827
lea eax, [esp + 0x1b0]
cmp dword [esp + 0x194], 8
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x180]
jae 0x40b846
lea eax, [esp + 0x180]
mov dword [esp + 0x138], eax
lea eax, [esp + 0x124]
push eax
mov dword [esp + 0x144], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40b97b
call edi
push eax
push str.ShellExecuteEx___failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp ebx, 2
je 0x40b8a3
cmp ebx, 3
je 0x40b8a3
cmp ebx, 4
je 0x40b8a3
cmp ebx, 5
jne 0x40b97b
xor eax, eax
mov dword [esp + 0x17c], 7
mov word [esp + 0x168], ax
lea edx, [esp + 0x214]
lea eax, [esp + 0x168]
mov dword [esp + 0x178], 0
push eax
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
je 0x40b96f
push 0x2c
lea eax, [esp + 0x248]
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40b915
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x1e8]
push ecx
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x168]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
jmp 0x40bd9e
call edi
push eax
push str.GetTokenInformation_2__failed__d
jmp 0x40b9ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken___failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40bd9e
mov esi, dword [esp + 0x164]
lea eax, [esi - 1]
cmp eax, 0xc
ja case.default.0x40b9db
jmp dword [eax*4 + 0x40d18c]
xor eax, eax
cmp dword [esp + 0x1ac], 8
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x198]
jae 0x40ba26
lea eax, [esp + 0x198]
push dword [esp + 0xc]
lea ecx, [esp + 0x184]
push dword [esp + 0x14]
push eax
call fcn.00409360
lea ecx, [esp + 0x180]
call fcn.00409550
lea ecx, [esp + 0x180]
mov esi, eax
call fcn.004093f0
jmp 0x40bda0
xor eax, eax
mov dword [esp + 0x194], 7
mov word [esp + 0x180], ax
lea edx, [esp + 0x22c]
mov dword [esp + 0x1c0], eax
lea ecx, [esp + 0x1c8]
mov word [esp + 0x1b0], ax
mov dword [esp + 0x178], eax
mov word [esp + 0x168], ax
lea eax, [esp + 0x1b0]
push eax
mov dword [esp + 0x194], 0
mov dword [esp + 0x1c8], 7
mov dword [esp + 0x180], 7
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40bad7
push str.missing_id
jmp 0x40bb28
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea edx, [esp + 0x214]
mov bl, al
lea ecx, [esp + 0x1c8]
lea eax, [esp + 0x168]
push eax
call fcn.0040ae40
add esp, 4
test bl, bl
jne 0x40bb42
cmp esi, 2
je 0x40bb23
cmp esi, 3
jne 0x40bb42
push str.missing_inf
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
jmp 0x40b96f
push 0x2c
lea eax, [esp + 0x1e4]
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40bb6e
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x50]
push ecx
push eax
lea ecx, [esp + 0x1f0]
call fcn.004041f0
lea ecx, [esp + 0x48]
call fcn.00401c80
sub esi, 2
je 0x40bcbe
dec esi
je 0x40bbdc
dec esi
jne 0x40bd39
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00404ab0
cmp eax, 1
je 0x40bd39
call edi
push eax
push str.Remove_failed__d
jmp 0x40bd24
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x1e8]
call fcn.00404990
mov esi, eax
cmp esi, 1
je 0x40bc1c
call edi
push eax
push str.Update_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp esi, 3
jne 0x40bd39
push str.DevInst_not_found__attempting_Rescan
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x1e0]
call fcn.00405560
cmp eax, 1
jne 0x40bcb4
push str.Rescan_successful__attempting_Update
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x1e0]
push eax
lea eax, [esp + 0x184]
push eax
call fcn.00404990
cmp eax, 1
jne 0x40bcaa
push str.Update_successful
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
jmp 0x40bd39
call edi
push eax
push str.Update_failed__d
jmp 0x40bd24
call edi
push eax
push str.Rescan_failed__d
jmp 0x40bd24
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x1e8]
call fcn.00404570
mov esi, eax
cmp esi, 1
je 0x40bd39
call edi
push eax
push str.Install_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp esi, 6
jne 0x40bd39
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405900
cmp eax, 1
je 0x40bd39
call edi
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp dword [esp + 0x178], 0
je 0x40bd57
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405630
lea ecx, [esp + 0x1e0]
call fcn.00404500
lea ecx, [esp + 0x168]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
push str.Loader_shutdown...
lea eax, [esp + 0x164]
push 0x64
push eax
call fcn.00409df0
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x3e8]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40bdb4
push eax
call edi
mov eax, dword [esp + 0x3e4]
test eax, eax
je 0x40bdc2
push eax
call edi
mov eax, dword [esp + 0x3e0]
test eax, eax
je 0x40bdd0
push eax
call edi
mov eax, dword [esp + 0x3dc]
test eax, eax
je 0x40bdde
push eax
call edi
mov eax, dword [esp + 0x3d8]
test eax, eax
je 0x40bdec
push eax
call edi
cmp dword [esp + 0x29c], 8
jb 0x40be05
push dword [esp + 0x288]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x29c], 7
lea ecx, [esp + 0x160]
mov dword [esp + 0x298], 0
mov word [esp + 0x288], ax
call fcn.00409d30
cmp dword [esp + 0x2cc], 8
jb 0x40be4a
push dword [esp + 0x2b8]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x2cc], 7
cmp dword [esp + 0x1ac], 8
mov dword [esp + 0x2c8], 0
mov word [esp + 0x2b8], ax
jb 0x40be83
push dword [esp + 0x198]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x1ac], 7
cmp dword [esp + 0x32c], 8
mov dword [esp + 0x1a8], 0
mov word [esp + 0x198], ax
jb 0x40bebc
push dword [esp + 0x318]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x32c], 7
cmp dword [esp + 0x2b4], 8
mov dword [esp + 0x328], 0
mov word [esp + 0x318], ax
jb 0x40bef5
push dword [esp + 0x2a0]
call fcn.00417533
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 0x40bf2e
push dword [esp + 0x300]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x314], 7
cmp dword [esp + 0x2fc], 8
mov dword [esp + 0x310], 0
mov word [esp + 0x300], ax
jb 0x40bf67
push dword [esp + 0x2e8]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x2fc], 7
cmp dword [esp + 0x228], 8
mov dword [esp + 0x2f8], 0
mov word [esp + 0x2e8], ax
jb 0x40bfa0
push dword [esp + 0x214]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x228], 7
cmp dword [esp + 0x240], 8
mov dword [esp + 0x224], 0
mov word [esp + 0x214], ax
jb 0x40bfd9
push dword [esp + 0x22c]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x240], 7
cmp dword [esp + 0x2e4], 8
mov dword [esp + 0x23c], 0
mov word [esp + 0x22c], ax
jb 0x40c012
push dword [esp + 0x2d0]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x2e4], 7
cmp dword [esp + 0x284], 8
mov dword [esp + 0x2e0], 0
mov word [esp + 0x2d0], ax
jb 0x40c04b
push dword [esp + 0x270]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x284], 7
cmp dword [esp + 0x35c], 8
mov dword [esp + 0x280], 0
mov word [esp + 0x270], ax
jb 0x40c084
push dword [esp + 0x348]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x35c], 7
cmp dword [esp + 0x374], 8
mov dword [esp + 0x358], 0
mov word [esp + 0x348], ax
jb 0x40c0bd
push dword [esp + 0x360]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x374], 7
cmp dword [esp + 0x344], 8
mov dword [esp + 0x370], 0
mov word [esp + 0x360], ax
jb 0x40c0f6
push dword [esp + 0x330]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x344], 7
cmp dword [esp + 0x38c], 8
mov dword [esp + 0x340], 0
mov word [esp + 0x330], ax
jb 0x40c12f
push dword [esp + 0x378]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [esp + 0x38c], 7
cmp dword [esp + 0x1dc], 8
mov dword [esp + 0x388], 0
mov word [esp + 0x378], ax
jb 0x40c168
push dword [esp + 0x1c8]
call fcn.00417533
add esp, 4
mov ecx, dword [esp + 0x4a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416cb0
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x17c], 7
mov word [esp + 0x168], ax
lea edx, [esp + 0x214]
lea eax, [esp + 0x168]
mov dword [esp + 0x178], 0
push eax
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x1e0]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40c1eb
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0xc4]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xc8]
push ecx
push eax
lea ecx, [esp + 0x1f0]
call fcn.004041f0
lea ecx, [esp + 0xc0]
call fcn.00401c80
lea ecx, [esp + 0x1e0]
call fcn.00405560
cmp eax, 1
je 0x40c253
call edi
push eax
push str.Rescan_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp dword [esp + 0x178], 0
je 0x40c271
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405630
lea ecx, [esp + 0x1e0]
call fcn.00404500
lea ecx, [esp + 0x168]
jmp 0x40bd82
xor eax, eax
mov dword [esp + 0x194], 7
mov word [esp + 0x180], ax
lea edx, [esp + 0x22c]
mov dword [esp + 0x178], eax
lea ecx, [esp + 0x1c8]
mov word [esp + 0x168], ax
lea eax, [esp + 0x180]
push eax
mov dword [esp + 0x194], 0
mov dword [esp + 0x180], 7
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c31c
push str.missing_id
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x168]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x1e0]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40c366
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1f0]
call fcn.004041f0
lea ecx, [esp + 0x18]
call fcn.00401c80
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405900
cmp eax, 1
je 0x40c3cd
call edi
push eax
push str.RemoveRescan_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
cmp dword [esp + 0x178], 0
je 0x40c3eb
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405630
lea ecx, [esp + 0x1e0]
call fcn.00404500
lea ecx, [esp + 0x168]
jmp 0x40bd76
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x1b0]
call fcn.00407070
lea ecx, [esp + 0x180]
call fcn.00407070
lea eax, [esp + 0x1b0]
mov dword [esp + 0x164], 0
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c45b
push str.missing_id
jmp 0x40c482
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x2ec]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c4c0
push str.missing_port_on_AddPortMonitor
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
push 0xb0
lea eax, [esp + 0x3f4]
push 0
push eax
call fcn.0041a7e0
add esp, 4
lea ecx, [esp + 0x3f8]
call fcn.0040d760
lea edx, [esp + 0x180]
lea ecx, [esp + 0x400]
call fcn.00411980
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x3f4]
call fcn.0040d220
lea ecx, [esp + 0x3f0]
call fcn.0040d1c0
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x1e0]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40c560
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0xf4]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xf8]
push ecx
push eax
lea ecx, [esp + 0x1f0]
call fcn.004041f0
lea ecx, [esp + 0xf0]
call fcn.00401c80
push dword [esp + 0x164]
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x1e8]
call fcn.00405af0
cmp eax, 1
je 0x40c5d9
call edi
push eax
push str.AddPortMonitor_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40c5f3
push str.AddPortMonitor_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40c611
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405630
lea ecx, [esp + 0x1e0]
call fcn.00404500
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x180]
call fcn.00407070
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c6b2
push str.missing_id
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x1e0]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40c6fc
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x34]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x1f0]
call fcn.004041f0
lea ecx, [esp + 0x30]
call fcn.00401c80
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405cc0
cmp eax, 1
je 0x40c765
call edi
push eax
push str.DeletePortMonitor_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40c77f
push str.DeletePortMonitor_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40c79d
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x1e4]
call fcn.00405630
lea ecx, [esp + 0x1e0]
call fcn.00404500
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x1e0]
call fcn.00407070
lea ecx, [esp + 0x1b0]
call fcn.00407070
lea ecx, [esp + 0x180]
call fcn.00407070
lea eax, [esp + 0x1e0]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c81a
push str.missing_id
jmp 0x40c86a
lea eax, [esp + 0x1b0]
push eax
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c843
push str.missing_dll_name
jmp 0x40c86a
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x304]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40c8b4
push str.missing_source
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x244]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40c8fe
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x7c]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x80]
push ecx
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0x78]
call fcn.00401c80
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0x1e8]
push eax
lea ecx, [esp + 0x250]
call fcn.00405e30
cmp eax, 1
je 0x40c97a
call edi
push eax
push str.InstallPrintProcessor_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40c994
push str.InstallPrintProcessor_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40c9b2
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x1b0]
call fcn.00401c80
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
push str.RemovePrintProcessor
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x180]
call fcn.00407070
lea ecx, [esp + 0x1e0]
call fcn.00407070
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40ca55
push str.missing_id
jmp 0x40ca7c
lea eax, [esp + 0x1e0]
push eax
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40caba
push str.missing_dll_name
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x244]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40cb04
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0xac]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xb0]
push ecx
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0xa8]
call fcn.00401c80
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x24c]
call fcn.00405fa0
cmp eax, 1
je 0x40cb7e
call edi
push eax
push str.RemovePrintProcessor_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40cb98
push str.RemovePrintProcessor_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40cbb6
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x180]
call fcn.00407070
lea ecx, [esp + 0x1e0]
call fcn.00407070
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40cc33
push str.missing_id
jmp 0x40cc5a
lea eax, [esp + 0x1e0]
push eax
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40cc98
push str.missing_inf_name
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x244]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40cce2
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0xdc]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xe0]
push ecx
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0xd8]
call fcn.00401c80
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x24c]
call fcn.00406270
cmp eax, 1
je 0x40cd5c
call edi
push eax
push str.InstallPrintDriver_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40cd76
push str.InstallPrintDriver_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40cd94
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
lea ecx, [esp + 0x168]
call fcn.00407070
lea ecx, [esp + 0x1e0]
call fcn.00407070
lea eax, [esp + 0x1e0]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40ce35
push str.missing_id
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x168]
call fcn.00401c80
jmp 0x40bd9e
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
lea eax, [esp + 0x244]
push 0x2c
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40ce7f
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x10c]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x110]
push ecx
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0x108]
call fcn.00401c80
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x248]
call fcn.00406560
cmp eax, 1
je 0x40cef1
call edi
push eax
push str.RemovePrintDriver_failed__d
lea eax, [esp + 0x168]
push 0xc8
push eax
call fcn.00409df0
add esp, 0x10
jmp 0x40cf0b
push str.RemovePrintDriver_success
lea eax, [esp + 0x164]
push 0xc8
push eax
call fcn.00409df0
add esp, 0xc
cmp dword [esp + 0x178], 0
je 0x40cf29
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd82
lea ecx, [esp + 0x180]
call fcn.00407070
lea eax, [esp + 0x180]
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
je 0x40b987
lea ecx, [esp + 0x168]
call fcn.00407070
lea eax, [esp + 0x168]
push eax
lea edx, [esp + 0x31c]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40cfd4
cmp dword [esp + 0x178], 0
je 0x40cfd4
lea ecx, [esp + 0x168]
call fcn.00401c80
lea ecx, [esp + 0x180]
call fcn.00401c80
jmp 0x40bd9e
lea ecx, [esp + 0x1e0]
call fcn.00407070
lea eax, [esp + 0x1e0]
push eax
lea edx, [esp + 0x230]
lea ecx, [esp + 0x1cc]
call fcn.0040ae40
add esp, 4
test al, al
jne 0x40d01d
cmp dword [esp + 0x178], 0
je 0x40d01d
push 0x435808
lea ecx, [esp + 0x1e4]
call fcn.0040d710
xor eax, eax
cmp dword [esp + 0x1ac], 8
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x198]
jae 0x40d05a
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x64]
call fcn.00401f50
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x1e0]
push eax
push esi
push ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c0]
call fcn.00412580
lea ecx, [esp + 0x60]
call fcn.00401c80
mov edx, str.enable
lea ecx, [esp + 0x168]
call fcn.00411c60
test al, al
je 0x40d0af
lea ecx, [esp + 0x1b0]
call fcn.00412650
jmp 0x40d0d0
mov edx, str.disable
lea ecx, [esp + 0x168]
call fcn.00411c60
test al, al
je 0x40d0d0
lea ecx, [esp + 0x1b0]
call fcn.004126e0
push 0x2c
lea eax, [esp + 0x248]
push 0
push eax
call fcn.0041a7e0
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp dword [esp + 0x1ac], 8
jae 0x40d0fc
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x94]
call fcn.00401f50
lea eax, [esp + 0x390]
push eax
push esi
push ecx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x254]
call fcn.004041f0
lea ecx, [esp + 0x90]
call fcn.00401c80
cmp dword [esp + 0x190], 0
je 0x40d151
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x248]
call fcn.00405630
lea ecx, [esp + 0x244]
call fcn.00404500
lea ecx, [esp + 0x1b0]
mov dword [esp + method.tvhooks::PluginManager.virtual_0], vtable.tvhooks::PluginManager.0
call fcn.00408460
lea ecx, [esp + 0x1e0]
call fcn.00401c80
lea ecx, [esp + 0x168]
jmp 0x40bd76