Function at 0x4a50e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fe9e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0
call edi
test eax, eax
jle 0x4a5132
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0053c9f0
mov edx, eax
add esp, 0x10
cmp dword [edx + 0x14], 8
jb 0x4a5150
mov edx, dword [edx]
push edx
cmp esi, 0xffffffff
push str.failed_to_create_snapshot:__s
sete al
push eax
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x44
push eax
call fcn.00481110
mov edx, dword [ebp - 0x30]
add esp, 0x18
cmp edx, 8
jb 0x4a51aa
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a51a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a53ac
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x270]
push eax
push esi
mov dword [ebp - 0x270], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4a535b
nop dword [eax]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x18], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a51f0
sub ecx, edx
lea eax, [ebp - 0x24c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00473710
mov ebx, dword [ebp + 8]
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x4a521c
mov ecx, dword [ebx]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae eax, edi
cmp edx, dword [ebx + 0x10]
jne 0x4a5244
push edx
push ecx
push eax
call fcn.004827a0
add esp, 0xc
test eax, eax
jne 0x4a5244
mov bl, 1
jmp 0x4a5246
xor bl, bl
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4a527d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4a5273
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a53ac
push ecx
push edi
call fcn.004e7fa0
add esp, 8
test bl, bl
je 0x4a5346
push dword [ebp - 0x268]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
call edi
test eax, eax
jle 0x4a52b0
movzx eax, ax
or eax, 0x80070000
push 0x400
push 0
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0053c9f0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4a52cc
mov eax, dword [eax]
push eax
push str.failed_to_access_client_process_info:__s
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcUtil.cpp
push 0x4f
push eax
call fcn.004a3b20
mov edx, dword [ebp - 0x30]
add esp, 0x18
cmp edx, 8
jb 0x4a5323
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a53ac
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4a532f
cmp esi, 0xffffffff
jne 0x4a5380
mov byte [ebp - 4], 0
test esi, esi
je 0x4a5343
cmp esi, 0xffffffff
je 0x4a5343
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x270]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a51d0
xor bl, bl
test esi, esi
je 0x4a536d
cmp esi, 0xffffffff
je 0x4a536d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
test ebx, ebx
je 0x4a53a3
cmp ebx, 0xffffffff
je 0x4a53a3
call edi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov bl, 1
mov esi, dword [ebp - 0x10]
jmp 0x4a535d
call fcn.006cc674
int3