Function at 0x414da0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638010
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6eed24]
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 - 0x34], ebx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebx + 0x294]
call fcn.0041b830
cmp dword [ebp + 0xc], 0
mov edi, eax
mov dword [ebp - 0x44], edi
je 0x415030
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
push 0x5a
mov ecx, 0x6f50d0
call fcn.0043d920
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00403940
push 0
push 0
push 1
push 0x64e8d0
push 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
js 0x414ed0
je 0x414ed0
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub ecx, esi
cmp edi, ecx
jbe 0x414ea5
lea eax, [esi + 0x20]
add eax, edi
and eax, 0xffffffe0
mov dword [ebp - 0x30], eax
add eax, eax
push eax
push dword [ebp - 0x2c]
call fcn.00446560
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414ecd
cmp dword [ebp - 0x2c], 0
jne 0x414e99
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
jmp 0x414ea8
mov ebx, dword [ebp - 0x2c]
lea eax, [ebx + esi*2]
test eax, eax
je 0x414ec2
push edi
push eax
push 1
push 0x64e8d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esi, edi
xor eax, eax
mov dword [ebp - 0x28], esi
mov word [ebx + esi*2], ax
mov ebx, dword [ebp - 0x34]
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
mov ecx, 0x6f50d0
push eax
push 0x5b
call fcn.0043d920
push eax
lea ecx, [ebp - 0x2c]
call fcn.004031a0
mov esi, dword [ebp - 0x2c]
mov eax, 0x649aa0
test esi, esi
je 0x414ef9
mov eax, esi
push 0x1024
push 0x64e8d4
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x414fe9
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414f4d
push str._r_Cant_open_current_process_token____for_adjust_privileges_for_system_shutdown
push 4
push 0x344
push str.e:workprgpdf5_builds_rc.328_trackerupdatemainframe.cpp
call fcn.00431810
add esp, 0x10
jmp 0x414fec
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414fa7
push eax
push str._r_Cant_adjust_privileges____for_system_shutdown._Error_code:0x_X
push 4
push 0x353
push str.e:workprgpdf5_builds_rc.328_trackerupdatemainframe.cpp
call fcn.00431810
add esp, 0x14
jmp 0x414fec
push 0x80020003
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x414fce
push 0
push 0
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
jmp 0x414fec
push str.ExitWindowsEx__for_system_shutdown__was__r_not_succesfull___
push 4
push 0x363
push str.e:workprgpdf5_builds_rc.328_trackerupdatemainframe.cpp
call fcn.00431810
add esp, 0x10
jmp 0x414fec
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 2
test esi, esi
je 0x414ffd
push esi
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], 3
test eax, eax
je 0x415014
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
push 1
mov ecx, ebx
call fcn.00417a90
mov eax, edi
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.004b2558
mov esp, ebp
pop ebp
ret 0x10