Function at 0x405200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7255
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00451de2
push 1
mov ecx, ebx
call fcn.004523bc
mov eax, dword [0x65fb10]
mov ecx, ebx
mov dword [ebx + 0x1ce8], eax
call fcn.00408a60
mov byte [ebx + 0x135], al
test al, al
je 0x40526f
push 0
push 0x1388
push 0x7d3
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
cmp byte [0x66997a], 0
jne 0x40527f
mov ecx, ebx
call fcn.004086b0
mov ecx, ebx
call fcn.004055c0
cmp byte [0x66997a], 0
jne 0x405296
mov ecx, ebx
call fcn.00408340
push dword [ebx + 0x13d0]
lea eax, [ebx + 0xab0]
push eax
call fcn.004267c0
add esp, 8
lea ecx, [ebx + 0xa30]
push 0xffffff
push 0x5e4934
push 0x2bc
push 0xc
push 4
push 2
push dword [ebx + 0x13d0]
call fcn.00426fe0
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x405545
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.lenovo_vantage3:device_settings
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x40530c
movzx eax, ax
push eax
call fcn.00403100
jmp 0x405318
push 0x1f
push str.lenovo_vantage3:device_settings
call fcn.00403300
push 0x8002
push ecx
mov dword [ebp - 4], 1
lea ecx, [ebx + 0xb08]
push dword [ebx + 0x140]
mov edi, dword [ebp - 0x14]
push 0x2bc
push 0xc
push dword [ebx + 0x13d4]
push edi
call fcn.00428010
push 0
lea ecx, [ebx + 0xb08]
call fcn.004283a0
or eax, 0xffffffff
cmp byte [ebx + 0xf8], 0
jne 0x405508
mov ecx, ebx
call fcn.00405ef0
cmp byte [0x669979], 0
mov ecx, 0xea60
mov esi, dword [sym.imp.USER32.dll_SetTimer]
mov eax, 0x3a98
push 0
cmovne eax, ecx
push eax
push 0x7d1
push dword [ebx + 0x20]
call esi
push 0
push 0x64
push 0x7d2
push dword [ebx + 0x20]
call esi
push dword [ebx + 0x13c8]
lea eax, [ebx + 0x1c8]
push eax
call fcn.004267c0
add esp, 8
lea ecx, [ebx + 0x148]
push 0xffffff
push 0x5e4934
push 0x2bc
push 0xc
push 4
push 2
push dword [ebx + 0x13c8]
call fcn.00426fe0
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x40554f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.lenovo_vantage3:device_settings_batterydetail1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x405413
movzx eax, ax
push eax
call fcn.00403100
jmp 0x40541f
push 0x2f
push str.lenovo_vantage3:device_settings_batterydetail1
call fcn.00403300
mov eax, dword [ebp - 0x1c]
push 0x8002
push ecx
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x220]
push dword [eax + 0x140]
mov esi, dword [ebp - 0x18]
push 0x2bc
push 0xc
push dword [eax + 0x13cc]
push esi
call fcn.00428010
push 0
lea ecx, [ebx + 0x220]
call fcn.004283a0
mov ebx, dword [ebp - 0x1c]
cmp byte [ebx + 0xf5], 0
jne 0x405479
cmp byte [ebx + 0xf7], 0
jne 0x405479
cmp byte [ebx + 0xf6], 0
je 0x4054a1
cmp dword [ebx + 0x1ce8], 1
push ecx
push ebx
jne 0x40548b
push 0x407560
jmp 0x40549c
push 0x407bb0
call fcn.00405560
push ecx
push ebx
push 0x407660
call fcn.00405560
push 0
mov ecx, ebx
call fcn.00408b40
push 0
lea eax, [ebx + 0xd8]
mov dword [eax + 4], 0x408b20
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 0x4054e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405505
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405524
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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