Function at 0x1004bd60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c74a1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x1022b584]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x274], esi
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x1004be63
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004be5c
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x605
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007f90
mov esi, eax
push str.FindHeightProcessId__name_vec_is_empty
push esi
mov byte [ebp - 4], 2
call fcn.1000fad0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10008e90
lea ecx, [ebp - 0x28]
call fcn.10007310
lea ecx, [ebp - 0x40]
call fcn.10007310
xor eax, eax
jmp 0x1004c12c
push 0
push 2
mov dword [ebp - 0x278], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x280], ebx
cmp ebx, 0xffffffff
jne 0x1004bf44
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004be5c
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 4
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x60c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str.CreateToolhelp32Snapshot__Failed
push esi
mov byte [ebp - 4], 5
call fcn.1000fad0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
xor eax, eax
jmp 0x1004c12c
push 0x228
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1004c041
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004be5c
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 7
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x616
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str.Process32FirstW__Failed
push esi
mov byte [ebp - 4], 8
call fcn.1000fad0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
xor eax, eax
jmp 0x1004c12c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
xor ebx, ebx
mov edx, dword [esi]
mov ecx, eax
sub ecx, edx
sar ecx, 2
test ecx, ecx
je 0x1004c16f
nop dword [eax]
sub eax, edx
sar eax, 2
cmp eax, ebx
jbe 0x1004c199
lea eax, [ebp - 0x248]
push eax
push dword [edx + ebx*4]
call fcn.1019694f
add esp, 8
test eax, eax
jne 0x1004c14e
push dword [ebp - 0x264]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1004c148
lea eax, [ebp - 0x270]
xor esi, esi
push eax
push 8
push edi
mov dword [ebp - 0x270], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004c148
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], esi
push eax
push 4
lea eax, [ebp - 0x284]
push eax
push 0x14
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1004c0f9
cmp dword [ebp - 0x27c], 4
cmove esi, dword [ebp - 0x284]
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x1004c14e
mov ebx, dword [ebp - 0x264]
mov dword [ebp - 0x278], ebx
test ebx, ebx
je 0x1004c191
push dword [ebp - 0x280]
call edi
mov eax, ebx
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.101799ce
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x274]
inc ebx
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x1004c060
mov esi, dword [ebp - 0x274]
mov ebx, dword [ebp - 0x278]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x280]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004c047
jmp 0x1004c122
mov esi, dword [ebp - 0x274]
jmp 0x1004c175
call fcn.1003b650
int3