Function at 0x408340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d75cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x7c], edi
cmp byte [edi + 0xf4], 0
jne 0x408673
call fcn.004086b0
cmp byte [edi + 0x13f4], 0
je 0x408554
mov eax, dword [edi + 0x1ce4]
cmp dword [eax - 0xc], 0
je 0x408554
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x40868f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [edi + 0x1ce0]
push str._s_:
push eax
call fcn.0040ab60
add esp, 0xc
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x408699
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.lenovo_vantage3:power
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x40840f
movzx eax, ax
push eax
call fcn.00403100
jmp 0x40841b
push 0x15
push str.lenovo_vantage3:power
call fcn.00403300
push 0x8000
push ecx
mov byte [ebp - 4], 2
lea ebx, [edi + 0x13f8]
push dword [edi + 0x140]
mov esi, dword [ebp - 0x14]
mov ecx, ebx
push 0x190
push 0xd
push dword [edi + 0x1ce0]
push esi
call fcn.00428010
push 1
mov ecx, ebx
call fcn.004283a0
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push eax
push dword [edi + 0x1418]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x48], xmm0
call edi
lea eax, [ebp - 0x78]
mov ecx, ebx
push eax
call fcn.00454148
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x48]
push eax
push dword [ebx + 0x1c28]
call edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x1c08]
call fcn.00454148
mov ecx, 3
call fcn.00409200
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x44]
sub edx, eax
mov eax, dword [ebp - 0x3c]
push 1
sub eax, ecx
mov dword [ebp - 0x48], edx
push eax
mov eax, dword [ebp - 0x40]
sub eax, edx
push eax
push ecx
push edx
lea ecx, [ebx + 0x1c08]
call fcn.00450603
mov ecx, ebx
call fcn.00408910
push 0
lea eax, [ebx + 0x13d8]
mov dword [eax + 4], 0x408320
push 0
push eax
push 0x409b00
push 0
push 0
mov dword [eax + 8], ebx
mov dword [eax + 0x14], SysReAllocStringLen
mov dword [eax + 0x18], str.SOFTWARELenovoBatteryGauge
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x40850e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40852c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408673
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408673
push 0
lea ecx, [edi + 0x13f8]
call fcn.0045091b
push 0
lea ecx, [edi + 0x1c08]
call fcn.0045091b
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
push eax
push dword [edi + 0x1418]
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
call ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [edi + 0x13f8]
call fcn.00454148
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0xa50]
call ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xa30]
call fcn.00454148
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x64]
add eax, edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
sub eax, edx
push 1
push eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x24], edx
push eax
push edx
push ecx
lea ecx, [edi + 0xa30]
call fcn.00450603
lea eax, [ebp - 0x38]
push eax
push dword [edi + 0xb28]
call ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 0xb08]
call fcn.00454148
mov esi, dword [ebp - 0x2c]
mov ecx, 4
sub esi, dword [ebp - 0x34]
call fcn.00409200
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
add edx, eax
push 1
push esi
mov dword [ebp - 0x34], edx
lea eax, [edx + esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
push eax
push edx
push ecx
lea ecx, [edi + 0xb08]
call fcn.00450603
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movups xmmword [ebp - 0x58], xmm0
call ebx
mov ecx, 0x25
call fcn.00409200
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov esi, dword [ebp - 0x54]
mov ecx, edi
mov eax, dword [ebp - 0x50]
push 1
mov dword [ebp - 0x4c], edx
sub edx, esi
push edx
mov edx, dword [ebp - 0x58]
sub eax, edx
push eax
push esi
push edx
call fcn.00450603
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
push 0x80004005
call fcn.00403700
int3