Function at 0x45bbf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, dword [0x56711c]
cmp byte [esi + 0x28], 0
push edi
mov edi, eax
mov dword [esp + 0x6c], esi
jne 0x45bc18
push esi
xor eax, eax
mov byte [esi + 0x28], 1
call fcn.0045c170
mov eax, esi
mov dword [esp + 0x68], edi
call fcn.0045ab60
xor ebx, ebx
cmp eax, ebx
jle 0x45bc48
cmp eax, 0x64
je 0x45bc48
imul eax, edi
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x68], eax
cmp dword [esi + 0x30], ebx
je 0x45c153
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.WmiMonitorBrightnessMethods
call ebp
push str.WmiSetBrightness
mov dword [esp + 0x64], eax
mov byte [esp + 0x60], 1
call ebp
push str.Timeout
mov dword [esp + 0x44], eax
mov byte [esp + 0x40], 1
call ebp
push str.Brightness
mov dword [esp + 0x54], eax
mov byte [esp + 0x50], 1
call ebp
push str.Select__from_WmiMonitorBrightnessMethods
mov dword [esp + 0x4c], eax
mov byte [esp + 0x48], 1
call ebp
mov esi, dword [esi + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x64]
push eax
mov edi, 0x4d0dc0
mov byte [esp + 0x58], 1
mov byte [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], 1
mov dword [esp + 0x34], ebx
call fcn.004569e0
mov eax, dword [eax]
cmp eax, ebx
je 0x45bce7
mov eax, dword [eax]
jmp 0x45bce9
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x5c]
push ebx
push 0x10
push edx
push eax
mov eax, dword [ecx + 0x50]
push esi
call eax
lea edi, [esp + 0x64]
mov esi, eax
call fcn.00456a40
cmp esi, ebx
je 0x45bdc9
cmp byte [esp + 0x14], bl
je 0x45bd28
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45bd28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x1c], bl
je 0x45bd42
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45bd42
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
cmp byte [esp + 0x24], bl
je 0x45bd5c
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x45bd5c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], ebx
cmp byte [esp + 0x2c], bl
je 0x45bd76
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x45bd76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x45bd8b
push eax
call esi
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x45bd96
push eax
call esi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x45bda1
push eax
call esi
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x45bdac
push eax
call esi
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x45c153
push eax
call esi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
mov dword [esp + 0x64], ebx
jmp 0x45bdd2
xor ebx, ebx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xac]
push edx
lea edx, [esp + 0x3c]
push edx
push 1
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45c076
mov ecx, dword [esp + 0x6c]
mov esi, dword [ecx + 0x30]
cmp byte [esp + 0x1c], al
je 0x45be1d
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45be1d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x60]
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
push eax
push esi
call ecx
test eax, eax
jne 0x45c0f9
mov esi, dword [esp + 0x20]
cmp byte [esp + 0x24], al
je 0x45be58
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x45be58
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x4c]
push eax
push esi
call ecx
test eax, eax
jne 0x45c0f9
mov esi, dword [esp + 0x28]
cmp byte [esp + 0x14], al
je 0x45be92
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45be92
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 0x3c]
push ebx
push esi
call eax
test eax, eax
jne 0x45c0f9
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x78]
push ecx
call edi
mov edx, 8
push 0x4d0ff4
mov word [esp + 0x7c], dx
call ebp
push 0x13
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
call ebx
test esi, esi
jne 0x45c0f9
lea edx, [esp + 0x88]
push edx
call edi
mov cx, word [esp + 0x68]
mov word [esp + 0x90], cx
push esi
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x50]
mov eax, 0x11
mov word [esp + 0x90], ax
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push esi
push ecx
push eax
call edx
mov esi, eax
lea eax, [esp + 0x88]
push eax
call ebx
test esi, esi
jne 0x45c0f9
lea ecx, [esp + 0x98]
push ecx
call edi
mov ebx, dword [esp + 0x38]
push 0xc
call fcn.0049d99f
mov esi, eax
add esp, 4
test esi, esi
je 0x45c0e6
lea edi, [esi + 8]
push 0x4d0ff8
mov dword [esi + 4], 0
mov dword [edi], 1
call ebp
mov dword [esi], eax
test eax, eax
je 0x45c0e6
mov ecx, dword [esi]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push 0
push 0
lea eax, [esp + 0xa0]
push eax
push 0
push ecx
push ebx
call edx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45bfe3
mov eax, dword [esi]
test eax, eax
je 0x45bfca
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x45bfda
push eax
call fcn.0049d70f
add esp, 4
push esi
call fcn.0049d70f
add esp, 4
test ebx, ebx
jne 0x45c0f9
mov eax, dword [esp + 0xa0]
push eax
call ebp
mov ecx, dword [esp + 0x6c]
push ebx
push ebx
mov edi, eax
mov eax, dword [ecx + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x60]
push ecx
mov ecx, dword [esp + 0x4c]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0xb8]
push ecx
push eax
mov dword [esp + 0x94], edi
mov byte [esp + 0x90], 1
call edx
mov esi, eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc dword [esp + 0x64]
test esi, esi
jne 0x45c0f0
test edi, edi
je 0x45c052
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [esp + 0x34], 0
je 0x45bdd0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x45bdd0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x45bdd0
lea esi, [esp + 0x34]
call fcn.0045d220
lea esi, [esp + 0x14]
call fcn.0045d220
lea esi, [esp + 0x1c]
call fcn.0045d220
lea esi, [esp + 0x24]
call fcn.0045d220
lea esi, [esp + 0x2c]
call fcn.0045d200
lea ecx, [esp + 0x54]
call fcn.00401540
lea ecx, [esp + 0x44]
call fcn.00401540
lea ecx, [esp + 0x4c]
call fcn.00401540
lea ecx, [esp + 0x3c]
call fcn.00401540
lea ecx, [esp + 0x5c]
call fcn.00401540
mov eax, dword [esp + 0x64]
neg eax
sbb eax, eax
neg eax
dec eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
push 0x8007000e
call fcn.0049cd80
lea ecx, [esp + 0x70]
call fcn.00401540
lea esi, [esp + 0x34]
call fcn.0045d220
lea esi, [esp + 0x14]
call fcn.0045d220
lea esi, [esp + 0x1c]
call fcn.0045d220
lea esi, [esp + 0x24]
call fcn.0045d220
lea esi, [esp + 0x2c]
call fcn.0045d200
lea ecx, [esp + 0x54]
call fcn.00401540
lea ecx, [esp + 0x44]
call fcn.00401540
lea ecx, [esp + 0x4c]
call fcn.00401540
lea ecx, [esp + 0x3c]
call fcn.00401540
lea ecx, [esp + 0x5c]
call fcn.00401540
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xa4
ret