Function at 0x519440
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x5d1384
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x20c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ebp
call edx
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
mov dword [esp + 0x214], esi
mov dword [esp + 0xe0], 0x128
jne 0x51958d
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
mov byte [esp + 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x48]
push str.CreateToolhelp32Snapshot____of_process_
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x214], 2
jb 0x519511
mov eax, dword [eax + 4]
jmp 0x519514
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x93
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0xdc], esi
jb 0x51954e
mov edx, dword [esp + 0xc8]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x214], 0
call fcn.00409f20
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x519aa4
lea ecx, [esp + 0xe0]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
je 0x519682
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
mov byte [esp + 0x214], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x48]
push str.Process32First__
push edx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x214], 4
jb 0x519601
mov eax, dword [eax + 4]
jmp 0x519604
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x9e
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0xdc], esi
jb 0x51963e
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x214], 0
call fcn.00409f20
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x519aa4
xor esi, esi
mov eax, dword [esp + 0xe8]
cmp eax, esi
je 0x519a71
cmp eax, 4
je 0x519a71
push esi
push 0x62a4a0
lea ecx, [esp + 0xcc]
mov dword [esp + 0x28], esi
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], esi
mov byte [esp + 0xd0], 0
call fcn.004098b0
mov eax, dword [esp + 0xe8]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x40], ebx
cmp ebx, esi
mov byte [esp + 0x214], 6
jne 0x5197d6
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
mov byte [esp + 0x214], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xe8]
push eax
push 0x5f5508
push ecx
lea edx, [esp + 0x50]
push str.OpenProcess__
push edx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x214], 8
jb 0x51976b
mov eax, dword [eax + 4]
jmp 0x51976e
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0xb6
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x3c], esi
jb 0x5197a2
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x214], 6
call fcn.00409f20
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
jmp 0x519943
push ebx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x5198c6
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
mov byte [esp + 0x214], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0xec]
push 0x5f5508
push eax
lea ecx, [esp + 0x50]
push str.GetPriorityClass__
push ecx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x214], 0xa
jb 0x519860
mov eax, dword [eax + 4]
jmp 0x519863
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0xbf
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x3c], esi
jb 0x519897
mov eax, dword [esp + 0x28]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x214], 6
call fcn.00409f20
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
lea edx, [esp + 0xc4]
push edx
push ebx
mov ecx, ebp
call fcn.005181a0
cmp dword [esp + 0xd8], 0
je 0x519943
push 1
push 0
push 0x5f3230
lea ecx, [esp + 0xd0]
call fcn.00425960
cmp eax, 0xffffffff
je 0x519943
mov ecx, dword [esp + 0xd8]
sub ecx, eax
push ecx
add eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0xd0]
call fcn.004253c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x220], 0xb
call fcn.004080b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x214], 6
call fcn.0040c050
push 0xe4
call fcn.00594e6d
add esp, 4
test eax, eax
je 0x51995f
mov ecx, eax
call fcn.0050b9e0
mov esi, eax
jmp 0x519961
xor esi, esi
test esi, esi
mov dword [esp + 0x14], esi
jne 0x51999b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xdc], 0x10
mov byte [esp + 0x214], 0
jb 0x519a71
mov eax, dword [esp + 0xc8]
push eax
call fcn.00594e98
add esp, 4
jmp 0x519a71
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x104]
mov dword [esi], ecx
lea ecx, [esi + 4]
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5199b1
sub eax, edi
push eax
lea edx, [esp + 0x108]
push edx
call fcn.004098b0
mov eax, dword [esp + 0xf4]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], ecx
mov edx, dword [esp + 0xfc]
push 0xffffffffffffffff
mov dword [esi + 0x44], edx
push 0
lea edx, [esp + 0xcc]
lea ecx, [esi + 0x64]
push edx
mov dword [esi + 0x48], eax
call fcn.004080b0
mov eax, dword [esp + 0xe8]
add esi, 0x20
push esi
push eax
mov ecx, ebp
call fcn.00517780
mov edi, dword [ebp + 8]
mov edx, dword [edi + 4]
lea esi, [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
call fcn.0050b950
push 1
mov ecx, esi
mov ebp, eax
call fcn.00516950
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
push ebx
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xdc], 0x10
mov byte [esp + 0x214], 0
jb 0x519a69
mov eax, dword [esp + 0xc8]
push eax
call fcn.00594e98
add esp, 4
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xe0]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x519680
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
push edx
lea ecx, [ebp + 4]
call fcn.00516dc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f4]
xor ecx, esp
call fcn.005b0968
add esp, 0x204
ret