Function at 0x414ea0
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4970d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.00414580
test eax, eax
jne 0x414f12
mov dword [esp + 0x14], 0xffffffff
jmp 0x41508b
mov ebp, dword [esp + 0x24]
cmp ebp, dword [esp + 0x28]
jbe 0x414f21
call fcn.0045f752
lea eax, [esp + 0x20]
mov ebx, eax
jmp 0x414f30
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jbe 0x414f3f
call fcn.0045f752
test ebx, ebx
je 0x414f4b
lea eax, [esp + 0x20]
cmp ebx, eax
je 0x414f50
call fcn.0045f752
cmp ebp, esi
je 0x415089
test ebx, ebx
jne 0x414f61
call fcn.0045f752
cmp ebp, dword [ebx + 8]
jb 0x414f6b
call fcn.0045f752
cmp dword [ebp], 0
je 0x415077
cmp ebp, dword [ebx + 8]
jb 0x414f7f
call fcn.0045f752
cmp dword [ebp], 4
je 0x415077
cmp ebp, dword [ebx + 8]
jb 0x414f93
call fcn.0045f752
mov ecx, dword [ebp]
push ecx
lea ecx, [esp + 0x20]
call fcn.00414770
add esp, 4
mov edi, eax
mov byte [esp + 0x38], 2
call fcn.00401c30
lea edi, [esp + 0x18]
call fcn.00401cd0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jl 0x415077
push str.lenovodrvtray.exe
push edi
call fcn.0045f07d
add esp, 8
test eax, eax
je 0x415077
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x415077
cmp ebp, dword [ebx + 8]
jb 0x415010
call fcn.0045f752
mov ecx, dword [ebp]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41505e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x415055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::ExitDriverGeniusMain_TerminateProcess_failed__error:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 8
mov dword [esp + 0x14], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::ExitDriverGeniusMain_OpenProcess_failed__error:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 8
cmp ebp, dword [ebx + 8]
jb 0x415081
call fcn.0045f752
add ebp, 4
jmp 0x414f30
xor ebx, ebx
mov esi, dword [esp + 0x14]
push esi
push str.KHelper::ExitDriverGeniusMain_return__d
mov ecx, 0x4ba960
call fcn.0041d5c0
lea eax, [edi - 0x10]
add esp, 8
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4150c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4150d4
push eax
call fcn.0045eebc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret