Function at 0x447020
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4576c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x466040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x44722a
push 0x228
lea eax, [ebp - 0x25c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x260], 0x22c
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x447226
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [eax]
nop word [eax + eax]
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
push str.gta_sa.exe
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 0
movups xmmword [ebp - 0x278], xmm0
call fcn.0044d840
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 0xf
push 0
push dword [ebp - 0x268]
cmova eax, dword [ebp - 0x278]
push eax
push 0
push 0xfde9
call esi
mov esi, eax
mov dword [ebp - 0x1c], 0
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.0044d610
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
push esi
cmova ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 0xf
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmova eax, dword [ebp - 0x278]
push ecx
push dword [ebp - 0x268]
push eax
push 0
push 0xfde9
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
cmp ecx, 0xf
jbe 0x4471b8
mov edx, dword [ebp - 0x278]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4471ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447280
push ecx
push edx
call fcn.00455255
add esp, 8
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ecx, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x447251
cmp ecx, 7
jbe 0x44720e
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447204
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447280
push ecx
push edx
call fcn.00455255
add esp, 8
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4470c0
xor esi, esi
test edi, edi
je 0x447231
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455124
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x258]
cmp ecx, 7
jbe 0x447226
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447286
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x447286
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00455255
add esp, 8
jmp 0x447226