Function at 0x4039f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1998
call fcn.0041c310
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x1994], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.nview.dll
call fcn.00401064
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403a39
xor eax, eax
jmp 0x404338
push str.NVIsHookLoaded
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403a5d
call dword [ebp - 4]
mov ecx, dword [ebp - 0x1994]
mov dword [ecx + 0x28], eax
push str.NVUnicode
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403a81
call dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1994]
mov dword [ecx + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x1994]
cmp dword [edx + 0x28], 0
je 0x40431c
mov eax, dword [ebp - 0x1994]
add eax, 0x34
push eax
push 0x26
push 1
mov ecx, dword [ebp - 0x1994]
call fcn.004014ab
mov ecx, dword [ebp - 0x1994]
add ecx, 0x38
push ecx
push 0x10
push 1
mov ecx, dword [ebp - 0x1994]
call fcn.004014ab
mov dword [ebp - 0x1c], 0
push str.DMGetCurrentDesktop
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x403aef
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.DMEnumDesktops
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push str.DMGetSetting
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push str.DMEnumDesktopApplications
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], 0
je 0x403cc4
cmp dword [ebp - 0x48], 0
je 0x403cc4
cmp dword [ebp - 0x2c], 0
je 0x403cc4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x50
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx + 0x44]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [ebp - 0x3c]
test eax, eax
je 0x403c8a
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x50]
mov dword [ecx + eax*4 + 0xa44], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x50]
jne 0x403ba2
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0x40], edx
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x208
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx + 0xb04]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0x80
call dword [ebp - 0x48]
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1994]
lea edx, [ecx + eax*4 + 0x4c04]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0x100
call dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x54]
imul edx, edx, 0x208
mov eax, dword [ebp - 0x1994]
lea ecx, [eax + edx + 0x7f04]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0x20
call dword [ebp - 0x48]
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx*4 + 0xc004]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0x10
call dword [ebp - 0x48]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x1994]
mov dword [eax + edx*4 + 0x7e84], 0x64
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx*4 + 0x7e84]
push eax
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x190
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx + 0x4c84]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x403b57
mov eax, dword [ebp - 0x1994]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x3c], ecx
cmp dword [ebp - 0x54], 0
jne 0x403cc4
push 0x446b4c
mov edx, dword [ebp - 0x1994]
add edx, 0xb04
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x1994]
mov dword [eax + 0x4c04], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.DMGetCurrentMonitorDesktop
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403d28
mov dword [ebp - 0x5c], 0
jmp 0x403cf4
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0x10
jae 0x403d28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1994]
mov dword [ecx + eax*4 + 0xac4], 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x1994]
lea ecx, [eax + edx*4 + 0xac4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [ebp - 0x28]
jmp 0x403ceb
mov dword [ebp - 0x38], 0xffffffff
push str.HKEnumActions
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
push str.HKEnumCommands
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
push str.HKGetProperty
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push str.HKGetActionProperties
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
push str.HKGetActionParamFlags
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.NVLoadString
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x34], 0
je 0x404196
cmp dword [ebp - 0x30], 0
je 0x404196
cmp dword [ebp - 0x44], 0
je 0x404196
cmp dword [ebp - 0x40], 0
je 0x404196
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x60], 0
xor eax, eax
mov word [ebp - 0x108], ax
push 0x9e
push 0
lea ecx, [ebp - 0x106]
push ecx
call fcn.0041c290
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [ebp - 0x34]
test eax, eax
je 0x404184
xor edx, edx
mov word [ebp - 0x1b8], dx
push 0x9e
push 0
lea eax, [ebp - 0x1b6]
push eax
call fcn.0041c290
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [ebp - 0x30]
test eax, eax
je 0x404161
mov dword [ebp - 0x5c4], 0
lea edx, [ebp - 0x5c4]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c4]
and ecx, 0x2000
jne 0x403eab
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
jmp 0x403dfd
xor eax, eax
mov word [ebp - 0x3c0], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x3be]
push ecx
call fcn.0041c290
add esp, 0xc
xor edx, edx
mov word [ebp - 0x5c0], dx
push 0x1fe
push 0
lea eax, [ebp - 0x5be]
push eax
call fcn.0041c290
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x403f1b
push 0x100
lea ecx, [ebp - 0x3c0]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [ebp - 0x20]
push 0x100
lea eax, [ebp - 0x5c0]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call dword [ebp - 0x20]
lea edx, [ebp - 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x403f40
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov word [ebp - 0x7d0], dx
push 0x206
push 0
lea eax, [ebp - 0x7ce]
push eax
call fcn.0041c290
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x7d0]
push ecx
push 0x26c8
call fcn.0040127b
add esp, 0xc
lea edx, [ebp - 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x403f97
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x1998], eax
jmp 0x403fa3
lea ecx, [ebp - 0x7d0]
mov dword [ebp - 0x1998], ecx
mov edx, dword [ebp - 0x1998]
push edx
mov eax, dword [ebp - 0x110]
imul eax, eax, 0xa0
mov ecx, dword [ebp - 0x1994]
lea edx, [ecx + eax + 0xc088]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x5c4]
mov dword [ecx + eax*4 + 0x13d88], edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x60]
mov dword [ecx + eax*4 + 0x13f18], edx
push 0x446b4c
mov eax, dword [ebp - 0x110]
imul eax, eax, 0xa0
mov ecx, dword [ebp - 0x1994]
lea edx, [ecx + eax + 0xff08]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x1994]
mov dword [ecx + eax*4 + 0x140a8], 0
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x7d4], 0
lea edx, [ebp - 0x7d4]
push edx
mov eax, dword [ebp - 0x5c8]
push eax
call dword [ebp - 0x44]
test eax, eax
je 0x404161
mov dword [ebp - 0x7d8], 0
lea ecx, [ebp - 0x7d8]
push ecx
push 2
mov edx, dword [ebp - 0x7d4]
push edx
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x7d8]
jne 0x40414d
mov dword [ebp - 0x7dc], 0
lea ecx, [ebp - 0x7dc]
push ecx
push 0x200
mov edx, dword [ebp - 0x7d4]
push edx
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x5c4]
and eax, 1
jne 0x40414d
mov ecx, dword [ebp - 0x5c4]
and ecx, 2
jne 0x40414d
mov edx, dword [ebp - 0x5c4]
and edx, 4
jne 0x40414d
mov eax, dword [ebp - 0x5c4]
and eax, 8
jne 0x40414d
mov ecx, dword [ebp - 0x5c4]
and ecx, 0x40
jne 0x40414d
mov edx, dword [ebp - 0x5c4]
and edx, 0x100
jne 0x40414d
mov eax, dword [ebp - 0x5c4]
and eax, 0x200
jne 0x40414d
mov ecx, dword [ebp - 0x110]
imul ecx, ecx, 0xa0
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx + 0xff08]
push eax
mov ecx, dword [ebp - 0x7dc]
push ecx
mov ecx, dword [ebp - 0x1994]
call fcn.0040105f
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x1994]
mov ecx, dword [ebp - 0x7d4]
mov dword [eax + edx*4 + 0x140a8], ecx
mov edx, dword [ebp - 0x5c8]
add edx, 1
mov dword [ebp - 0x5c8], edx
jmp 0x404049
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
jmp 0x403dfd
mov edx, dword [ebp - 0x1994]
mov eax, dword [ebp - 0x110]
mov dword [edx + 0xc084], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.PMEnumEx
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push str.PMGetCurrentProfile
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], 0
je 0x40431c
cmp dword [ebp - 0x18], 0
je 0x40431c
mov eax, dword [ebp - 0x1994]
add eax, 0x14238
push eax
call dword [ebp - 0x18]
mov dword [ebp - 0x198c], 0
mov dword [ebp - 0x1990], 0
xor ecx, ecx
mov word [ebp - 0x9e8], cx
push 0x206
push 0
lea edx, [ebp - 0x9e6]
push edx
call fcn.0041c290
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1988], ax
push 0xf9e
push 0
lea ecx, [ebp - 0x1986]
push ecx
call fcn.0041c290
add esp, 0xc
mov dword [ebp - 0x7e0], 0xfa0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x7e0]
push edx
lea eax, [ebp - 0x1988]
push eax
lea ecx, [ebp - 0x9e8]
push ecx
mov edx, dword [ebp - 0x198c]
push edx
call dword [ebp - 0x24]
test eax, eax
je 0x40430a
lea eax, [ebp - 0x9e8]
push eax
mov ecx, dword [ebp - 0x198c]
imul ecx, ecx, 0x208
mov edx, dword [ebp - 0x1994]
lea eax, [edx + ecx + 0x14440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x1988]
push ecx
mov edx, dword [ebp - 0x198c]
imul edx, edx, 0xfa0
mov eax, dword [ebp - 0x1994]
lea ecx, [eax + edx + 0x20f60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x1994]
add edx, 0x14238
push edx
lea eax, [ebp - 0x9e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4042ec
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x198c]
mov dword [ecx + 0x829e0], edx
mov dword [ebp - 0x7e0], 0xfa0
mov eax, dword [ebp - 0x198c]
add eax, 1
mov dword [ebp - 0x198c], eax
jmp 0x40423f
mov ecx, dword [ebp - 0x1994]
mov edx, dword [ebp - 0x198c]
mov dword [ecx + 0x829e4], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], 0
mov eax, 1
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret