Function at 0x438400
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x497390
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4b994c
mov dword [esp + 0x18], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea edi, [ebp + 0x14]
mov esi, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
test edi, edi
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax + 4]
je 0x438470
cmp edi, eax
je 0x438475
call fcn.0045f752
cmp esi, ebx
je 0x438621
test edi, edi
jne 0x438486
call fcn.0045f752
cmp esi, dword [edi + 4]
jne 0x438490
call fcn.0045f752
mov ecx, dword [esi + 0x18]
lea esi, [esp + 0x1c]
call fcn.004128b0
mov byte [esp + 0x34], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4384f3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4384e6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4384e6
call fcn.00401ec0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4384dd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4384f3
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401f30
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push str.lenovodrvtray.exe
push ecx
call fcn.004616ad
add esp, 8
test eax, eax
je 0x438544
lea esi, [esp + 0x20]
call fcn.0043a5a0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x438461
push str.KReupdate::ExitActiveProcess_need_restart_kxetray.exe
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 4
mov dword [ebp + 0x30], 1
call fcn.00414d90
call fcn.00414cd0
lea edx, [esp + 0x1c]
push ebp
push edx
mov ebx, str.lenovodrvtray.exe
call fcn.0040d090
mov eax, dword [eax]
add esp, 8
push 0xbb8
mov esi, eax
call fcn.00438980
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4385ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x438621
call fcn.00414ea0
call fcn.00414cd0
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ebx, str.lenovodrvtray.exe
call fcn.0040d090
mov eax, dword [eax]
add esp, 8
push 0x1f40
mov esi, eax
call fcn.00438980
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x438621
push str.KReupdate::ExitActiveProcess_kxetray.exe_WaitWritable_fail
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 4
mov esi, 1
jmp 0x43879d
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test ebx, ebx
mov eax, ebx
mov edi, dword [eax + 4]
je 0x43863f
cmp ebx, eax
je 0x438644
call fcn.0045f752
cmp esi, edi
je 0x4386d9
test ebx, ebx
jne 0x438655
call fcn.0045f752
cmp esi, dword [ebx + 4]
jne 0x43865f
call fcn.0045f752
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0x1f0fff
call ebp
mov edi, eax
test edi, edi
je 0x438682
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x2d], 0
je 0x43868f
call fcn.0045f752
jmp 0x438632
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x4386ae
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x438632
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x4386a2
jmp 0x438632
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x438630
jmp 0x4386c0
cmp esi, dword [eax + 8]
jne 0x438630
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x4386c0
jmp 0x438630
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edi, eax
test ebx, ebx
mov eax, ebx
mov esi, dword [eax + 4]
je 0x4386ed
cmp ebx, eax
je 0x4386f2
call fcn.0045f752
cmp edi, esi
je 0x438799
test ebx, ebx
jne 0x438703
call fcn.0045f752
cmp edi, dword [ebx + 4]
jne 0x43870d
call fcn.0045f752
mov esi, dword [edi + 0x18]
push 0x1f40
call fcn.00438980
test eax, eax
je 0x438739
mov edx, dword [edi + 0x18]
add dword [esp + 0x18], 1
push edx
push str.KReupdate::ExitActiveProcess_fail_to_exit_process:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 8
cmp byte [edi + 0x2d], 0
je 0x438746
call fcn.0045f752
jmp 0x4386e0
mov eax, dword [edi + 8]
cmp byte [eax + 0x2d], 0
jne 0x43876f
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x2d], 0
jne 0x4386e0
lea esp, [esp]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x2d], 0
je 0x438760
jmp 0x4386e0
mov eax, dword [edi + 4]
cmp byte [eax + 0x2d], 0
jne 0x4386de
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x4386de
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x438780
jmp 0x4386de
mov esi, dword [esp + 0x18]
push esi
push str.KReupdate::ExitActiveProcess_fail_count:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4387d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4