Function at 0x1002a91c
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 0x2c], ecx
inc esi
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
call fcn.10046123
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x2c]
push esi
mov dword [ebp - 0x44], eax
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.10058f7c
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
mov ax, word [eax]
xor edi, edi
cmp ax, 0x2d
push 0x2a
pop esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x38], ebx
jne 0x1002a98a
push 0x2d
pop esi
cmp si, ax
jne 0x1002ab18
add dword [ebp + 8], 2
je 0x1002aaf0
push 5
lea eax, [ebp + 8]
push eax
push 0x100ca2b8
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002a9bc
or edi, 1
jmp 0x1002aa9f
push 4
push dword [ebp + 8]
push str.svr2
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x1002aaad
push 9
push dword [ebp + 8]
push str.exitcode
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1002aa21
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
movzx eax, word [eax]
push eax
call fcn.10045b88
mov byte [ebp - 2], al
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10053a89
add esp, 0xc
cmp byte [ebp - 2], bl
je 0x1002aa9f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x1002aa9f
push 8
lea eax, [ebp + 8]
push eax
push str.explorer
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002aa41
mov dword [ebp - 0x14], 1
jmp 0x1002aa9f
push 3
lea eax, [ebp + 8]
push eax
push 0x100cbd28
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002aa61
mov dword [ebp - 0x18], 1
jmp 0x1002aa9f
push 4
lea eax, [ebp + 8]
push eax
push str.tree
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002aa81
mov dword [ebp - 0xc], 0xc0
jmp 0x1002aa9f
push 1
lea eax, [ebp + 8]
push eax
push 0x100cbd1c
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002aaec
mov dword [ebp - 0x38], 1
mov eax, dword [ebp + 8]
cmp si, word [eax]
je 0x1002a993
jmp 0x1002aaf0
mov esi, 0x100e3d7c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
push 2
push str.SeShutdownPrivilege
call fcn.10013699
add esp, 0xc
push 1
lea ecx, [ebp - 0x40]
call fcn.10014bc4
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
lea ecx, [ebp - 0x40]
call fcn.10014bfa
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002ab11
sub dword [ebp + 8], 2
cmp word [ebp - 0x18], bx
je 0x1002ab18
push 7
pop ecx
mov esi, str._._26:INDATA
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
movsw word es:[edi], word [esi]
call fcn.1002335d
xor esi, esi
jmp 0x1002adcf
mov esi, 0x100e3d7c
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], 0x8000
call fcn.10014bc4
cmp byte [ebp - 0x18], bl
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x1002ab48
push esi
mov dword [ebp - 8], ebx
call edi
mov eax, dword [ebp + 8]
push 0x2a
pop esi
cmp word [eax], si
jne 0x1002ac79
inc eax
inc eax
inc dword [ebp - 0x1c]
mov dword [ebp + 8], eax
cmp word [eax], si
je 0x1002ab57
jmp 0x1002ab6e
inc eax
inc eax
inc dword [ebp - 0x20]
mov dword [ebp + 8], eax
cmp word [eax], 0x26
je 0x1002ab66
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10053a89
test eax, eax
pop ecx
pop ecx
jle 0x1002ac5d
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1002ac5d
cmp dword [ebp - 0x1c], 1
jne 0x1002abd3
cmp dword [ebp - 0x20], ebx
je 0x1002ac3c
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
call fcn.1003a28f
pop ecx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10014bfa
cmp dword [ebp - 8], ebx
je 0x1002adcf
push dword [ebp - 8]
call edi
jmp 0x1002adcf
cmp dword [ebp - 0x1c], 2
jne 0x1002ac3c
cmp dword [ebp - 0x20], ebx
je 0x1002abea
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1002abaf
push eax
push ebx
push 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, ebx
je 0x1002ac14
cmp esi, 0xffffffff
je 0x1002ac14
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1003a28f
pop ecx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10014bfa
cmp dword [ebp - 8], ebx
je 0x1002adcf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002adcf
cmp word [ebp - 0xc], bx
mov dword [ebp - 0x24], eax
je 0x1002ac55
or dword [ebp - 0xc], 1
mov dword [ebp + 8], 0x100c6a64
jmp 0x1002acee
mov dword [ebp + 8], ebx
jmp 0x1002ad57
lea ecx, [ebp - 0x18]
call fcn.10014bfa
cmp dword [ebp - 8], ebx
je 0x1002ac6f
push dword [ebp - 8]
call edi
mov esi, 0x80070057
jmp 0x1002adcf
push eax
call fcn.10010e64
push eax
call fcn.100132bf
pop ecx
mov dword [ebp + 8], eax
cmp word [eax], bx
pop ecx
je 0x1002ac5d
push 0x5c
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
neg eax
sbb al, al
and eax, 0x20
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1002ace9
push 0x3f
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.1003ff40
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, dword [ebp + 8]
jbe 0x1002acdd
cmp word [eax], si
jne 0x1002acdd
cmp word [eax + 2], bx
jne 0x1002acdd
mov dword [ebp - 0x40], eax
mov word [eax], bx
mov dword [ebp - 0xc], 0x81
jmp 0x1002ace9
cmp word [eax], bx
je 0x1002ace9
mov dword [ebp - 0xc], 0x181
cmp dword [ebp + 8], ebx
je 0x1002ad32
mov ax, word [ebp - 0xc]
push dword [ebp - 0x24]
movsx ecx, byte [ebp - 1]
neg ax
push ebx
sbb eax, eax
and eax, dword [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xc]
or eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
call fcn.10018574
add esp, 0x14
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], eax
je 0x1002ad32
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.100120bc
add esp, 0xc
cmp word [ebp - 0xc], bx
je 0x1002ad4f
xor eax, eax
cmp dword [ebp - 0x10], ebx
sete al
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x28], eax
je 0x1002adb0
cmp dword [ebp - 0x10], ebx
je 0x1002adb0
jmp 0x1002ad6b
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x44], eax
je 0x1002ad6b
cmp eax, ebx
je 0x1002ad6b
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x14]
push eax
call fcn.100120bc
add esp, 0xc
cmp word [ebp - 0x38], bx
jne 0x1002adb0
cmp dword [ebp + 8], ebx
je 0x1002adb0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1002adb0
cmp dword [ebp - 0x3c], eax
jne 0x1002ad8e
mov ecx, dword [ebp - 0x2c]
push ebx
push ebx
push 1
call fcn.10011621
mov ax, word [ebp - 0xc]
neg ax
sbb eax, eax
not eax
and eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x3c], eax
jle 0x1002adb0
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], ebx
jg 0x1002ace9
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x1002adba
mov word [eax], si
lea ecx, [ebp - 0x18]
call fcn.10014bfa
cmp dword [ebp - 8], ebx
je 0x1002adcc
push dword [ebp - 8]
call edi
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4