Function at 0x1002f1d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100527a8
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100e8018]
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 - 0x274], ebx
movsx eax, byte [ebx]
push eax
call fcn.1003c7d0
add esp, 4
test eax, eax
je 0x1002f224
push ebx
call fcn.1003c633
add esp, 4
jmp 0x1002f5dd
xor edi, edi
mov dword [ebp - 0x284], 0
xor ebx, ebx
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x270], esi
cmp esi, 0xffffffff
jne 0x1002f279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed__last_error:__d__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1002f2cc
push 0x228
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0x22c
push 0
push eax
call fcn.100346a0
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1002f2e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First___failed__last_error:__d__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Could_not_enumerate_running_processes__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
xor edi, edi
jmp 0x1002f5db
cmp ebx, edi
je 0x1002f313
mov edi, ebx
lea esi, [ebp - 0x26c]
mov ecx, 0x8b
add ebx, 0x22c
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x270]
mov edi, dword [ebp - 0x278]
mov dword [ebp - 0x280], ebx
jmp 0x1002f338
lea eax, [ebp - 0x26c]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.1002fad0
mov edi, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x280]
mov dword [ebp - 0x278], edi
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1002f2e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x274]
xor edi, edi
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f360
sub ecx, esi
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 0x18], edi
push ecx
mov dword [ebp - 0x14], 7
lea esi, [edx + ecx]
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
call fcn.1001c1c0
mov byte [ebp - 0x270], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x270]
push esi
push dword [ebp - 0x274]
call fcn.1001c360
mov byte [ebp - 4], 1
mov eax, 0x75ded953
sub ebx, dword [ebp - 0x284]
imul ebx
mov ebx, dword [ebp - 0x284]
sar edx, 8
mov eax, edx
mov dword [ebp - 0x270], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x28c], eax
je 0x1002f4d3
lea esi, [ebx + 8]
nop
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x40], 0
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x288], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f410
sub ecx, dword [ebp - 0x288]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1000ff20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1003990a
add esp, 8
test eax, eax
jne 0x1002f476
push dword [esi]
push dword [ebp - 0x274]
push str.Process__s_found__PID:__d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0x10
test edi, edi
jne 0x1002f57f
mov edi, dword [esi]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1002f4b0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f4a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5f9
push edx
push ecx
call fcn.1003140a
add esp, 8
mov eax, dword [ebp - 0x270]
add esi, 0x22c
inc eax
mov dword [ebp - 0x270], eax
cmp eax, dword [ebp - 0x28c]
jb 0x1002f3e0
test edi, edi
jne 0x1002f4ee
push dword [ebp - 0x274]
push str.Process__s_is_not_running__n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor edi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002f528
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f51e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5f9
push edx
push ecx
call fcn.1003140a
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
test ebx, ebx
je 0x1002f5db
mov ecx, dword [ebp - 0x278]
mov eax, 0x75ded953
sub ecx, ebx
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x22c
mov eax, ebx
cmp ecx, 0x1000
jb 0x1002f5d1
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5f9
jmp 0x1002f5d1
push str.Process_running_multiple_instances__cant_decide_PID__n
push dword [0x100ee8a4]
call fcn.1000f610
mov edx, dword [ebp - 0x2c]
add esp, 8
cmp edx, 8
jb 0x1002f4ec
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f5c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f5f9
push edx
push ecx
call fcn.1003140a
add esp, 8
jmp 0x1002f4ec
push ecx
push ebx
call fcn.1003140a
add esp, 8
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.100313c7
mov esp, ebp
pop ebp
ret
call fcn.100397bd
int3