Function at 0x414f4b
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
inc esi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
call fcn.0043717e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0043fdd2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov cx, word [eax]
cmp cx, 0x2d
mov byte [ebp - 0x10], bl
mov dl, 0x2a
mov byte [ebp - 1], bl
jne 0x414fa3
mov dl, cl
movsx esi, dl
movzx eax, cx
cmp esi, eax
push 2
pop edi
jne 0x4150fd
add dword [ebp + 8], edi
je 0x4150d7
push 5
lea eax, [ebp + 8]
push eax
push 0x49a5ac
call fcn.00438eee
add esp, 0xc
test al, al
je 0x414fda
or byte [ebp - 0x10], 1
jmp 0x415039
push 4
push dword [ebp + 8]
push str.svr2
call fcn.00432c59
add esp, 0xc
test al, al
jne 0x415089
push 9
push dword [ebp + 8]
push str.exitcode
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41504c
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
movzx eax, word [eax]
push eax
call fcn.00410c71
mov bl, al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439fac
add esp, 0xc
test bl, bl
je 0x415037
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp esi, eax
je 0x414fb4
jmp 0x4150d7
push 8
lea eax, [ebp + 8]
push eax
push 0x49a584
call fcn.00438eee
add esp, 0xc
test al, al
je 0x41506c
mov dword [ebp - 0x14], 1
jmp 0x415039
push 3
lea eax, [ebp + 8]
push eax
push 0x49a580
call fcn.00438eee
add esp, 0xc
test al, al
je 0x4150d4
mov byte [ebp - 1], 1
jmp 0x415039
mov esi, 0x4b069c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4b0ab8], 8
jne 0x4150b2
or byte [0x4b0ab8], 8
push edi
push str.SeShutdownPrivilege
call fcn.0040fac5
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x24]
call fcn.00410da8
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
lea ecx, [ebp - 0x24]
call fcn.00410ddc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4150f6
sub dword [ebp + 8], edi
cmp byte [ebp - 1], 0
je 0x4150fd
push 6
pop ecx
mov esi, str.26:INDATA
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004296fc
xor esi, esi
jmp 0x415319
mov esi, 0x4b069c
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x8000
call fcn.00410da8
cmp byte [ebp - 0x10], 0
jne 0x41512e
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
jne 0x4151a6
add dword [ebp + 8], edi
lea ecx, [ebp + 8]
call fcn.0040c032
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx]
push eax
call fcn.00410c71
add esp, 4
test al, al
jne 0x415177
lea ecx, [ebp - 0x10]
call fcn.00410ddc
cmp dword [ebp - 0xc], ebx
je 0x41516d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 0x80070057
jmp 0x415319
mov ax, word [ecx]
cmp ax, bx
je 0x415192
cmp ax, 0x30
jb 0x41518b
cmp ax, 0x39
jbe 0x415192
add ecx, edi
mov dword [ebp + 8], ecx
jmp 0x415177
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439fac
pop ecx
pop ecx
mov dword [ebp + 8], ebx
jmp 0x4151fb
push dword [ebp + 8]
call fcn.0040d1db
push eax
call fcn.0040f738
pop ecx
mov dword [ebp + 8], eax
cmp word [eax], bx
pop ecx
je 0x415157
push 0x5c
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
neg eax
sbb al, al
and eax, 0x20
mov byte [ebp - 1], al
jmp 0x4151d6
mov al, byte [ebp - 1]
cmp dword [ebp + 8], ebx
je 0x4151f3
push ebx
movsx eax, al
push ebx
push ebx
or eax, 0x10
push eax
push dword [ebp + 8]
call fcn.004148f2
add esp, 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x28], eax
je 0x41522a
cmp dword [ebp - 8], ebx
je 0x41522a
push dword [ebp - 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41522a
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x415223
mov dword [ebp - 0x24], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x415300
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x415300
cmp dword [ebp - 0x20], eax
jne 0x4152ea
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
inc esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jle 0x4152ea
cmp byte [0x4ae290], 0
jle 0x4152ea
cmp ecx, ebx
jbe 0x4152da
cmp ecx, 0x7d0
jbe 0x415280
mov ecx, 0x3e8
jmp 0x415288
cmp ecx, 0x64
jbe 0x415288
push 0x64
pop ecx
push 0x4bf
push ecx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x4152da
cmp edi, ebx
jg 0x4152ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4152e3
push 3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4152e3
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp edi, ebx
jle 0x4152da
dec edi
cmp byte [0x4ae290], 0
jg 0x41529c
xor edi, edi
jmp 0x415252
mov eax, dword [ebp - 8]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jle 0x415300
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jg 0x4151d3
lea ecx, [ebp - 0x10]
call fcn.00410ddc
cmp dword [ebp - 0xc], ebx
je 0x415316
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4