Function at 0x10014910
Capabilities:
Create thread
Enumerate processes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x100525c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100149aa
mov eax, edi
lea ecx, [ebp - 0x114]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10014990
test dl, dl
je 0x1001498c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10014990
add ecx, 2
add eax, 2
test dl, dl
jne 0x10014970
xor eax, eax
jmp 0x10014995
sbb eax, eax
or eax, 1
test eax, eax
je 0x100149d1
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10014966
cmp esi, 0xffffffff
je 0x100149b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017143
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x130]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x100537bc], 1
jne 0x10014a53
push 1
push 0x40
push 8
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0x2bc]
call fcn.10001830
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0
push str._n:
push eax
call fcn.10001100
lea eax, [ebp - 0x2bc]
push edi
push eax
call fcn.10001100
add esp, 0x10
push 2
push 0x100406a0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 4], 0xffffffff
call fcn.100026a0
cmp dword [0x100537cc], 1
jne 0x10014b54
lea eax, [ebp - 0x140]
push eax
call fcn.1001dcd5
lea eax, [ebp - 0x140]
push eax
call fcn.1001dcae
add esp, 8
lea ecx, [ebp - 0x20c]
mov esi, eax
push 1
push 0x40
push 8
push 0x100406a4
call fcn.10001830
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], 1
push str._nLocal_Time:
push eax
call fcn.10001100
push esi
call fcn.1001d9c9
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10001100
lea eax, [ebp - 0x20c]
push str.:
push eax
call fcn.10001100
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10001100
lea eax, [ebp - 0x20c]
push str._n__________________
push eax
call fcn.10001100
add esp, 0x2c
lea ecx, [ebp - 0x208]
call fcn.100031c0
test eax, eax
jne 0x10014b3c
mov eax, dword [ebp - 0x20c]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0x1d4], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0x200]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0x200], eax
mov ecx, dword [ebp + ecx - 0x1fc]
and ecx, eax
jne 0x10014bd3
push 2
push 0x100406a4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x20c]
call fcn.100026a0
mov eax, dword [0x100537c0]
push 0
cmp eax, 1
jne 0x10014b86
push 0
push 0
push 0x10002af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x10014b96
push 0
push 0
push 0x10014c20
jmp 0x10014b69
cmp eax, 3
jne 0x10014ba6
push 0
push 0
push 0x10002b20
jmp 0x10014b69
cmp eax, 4
jne 0x10014b80
push 0
push 0
push 0x10015d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push 0x10040444
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10014b7e
test cl, 4
je 0x10014bdf
mov esi, str.ios_base::badbit_set
jmp 0x10014bef
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x148]
push 1
push eax
call fcn.100039e0
add esp, 8
lea ecx, [ebp - 0x15c]
push eax
push esi
call fcn.100020f0
push 0x1004d9f0
lea eax, [ebp - 0x15c]
push eax
call fcn.100184ad
int3