Function at 0x412880
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x465a7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ebp
call edx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1f8], edi
mov dword [esp + 0xc4], 0x128
cmp esi, 0xffffffff
jne 0x4129c1
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.00407d10
mov byte [esp + 0x1f8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x48]
push str.CreateToolhelp32Snapshot____of_process_
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x48]
call fcn.004048a0
mov esi, 0x10
mov byte [esp + 0x1f8], 2
cmp dword [eax + 0x18], esi
jb 0x41294e
mov eax, dword [eax + 4]
jmp 0x412951
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x71
push str..ywsmppubProcessManage.cpp
push 0x5001
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x3c], esi
jb 0x412982
mov edx, dword [esp + 0x28]
push edx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x1f8], 0
call fcn.00405530
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x412dc9
lea ecx, [esp + 0xc4]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
je 0x412aa4
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.00407d10
mov byte [esp + 0x1f8], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x48]
push str.Process32First__
push edx
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.004048a0
mov edi, 0x10
mov byte [esp + 0x1f8], 4
cmp dword [eax + 0x18], edi
jb 0x412a32
mov eax, dword [eax + 4]
jmp 0x412a35
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x7c
push str..ywsmppubProcessManage.cpp
push 0x5001
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x3c], edi
jb 0x412a66
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x1f8], 0
call fcn.00405530
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x412dc9
mov eax, dword [esp + 0xcc]
push eax
push edi
push 0x1fffff
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x1f8], 5
cmp ebx, edi
jne 0x412ba1
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.00407d10
mov byte [esp + 0x1f8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xcc]
push eax
push 0x46b498
push ecx
lea edx, [esp + 0x50]
push str.OpenProcess__
push edx
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.004048a0
mov esi, 0x10
mov byte [esp + 0x1f8], 7
cmp dword [eax + 0x18], esi
jb 0x412b49
mov eax, dword [eax + 4]
jmp 0x412b4c
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x8e
push str..ywsmppubProcessManage.cpp
push 0x5001
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x3c], esi
jb 0x412b80
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x1f8], 5
call fcn.00405530
lea edx, [esp + 0x90]
push edx
jmp 0x412c7e
push ebx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x412c91
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.00407d10
mov byte [esp + 0x1f8], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0xd0]
push 0x46b498
push eax
lea ecx, [esp + 0x50]
push str.GetPriorityClass__
push ecx
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x48]
call fcn.004048a0
mov esi, 0x10
mov byte [esp + 0x1f8], 9
cmp dword [eax + 0x18], esi
jb 0x412c2b
mov eax, dword [eax + 4]
jmp 0x412c2e
add eax, 4
push eax
push str.BaseLib::CProcessManage::Enumerate
push 0x97
push str..ywsmppubProcessManage.cpp
push 0x5001
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x3c], esi
jb 0x412c62
mov eax, dword [esp + 0x28]
push eax
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x1f8], 5
call fcn.00405530
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
push 0x4c
call fcn.0041f673
add esp, 4
cmp eax, edi
je 0x412cca
mov dword [eax], edi
mov dword [eax + 0x18], edi
mov ecx, 0xf
mov dword [eax + 0x1c], ecx
mov byte [eax + 8], 0
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], edi
mov byte [eax + 0x24], 0
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], edi
mov dword [eax + 0x48], edi
mov esi, eax
jmp 0x412ccc
xor esi, esi
mov dword [esp + 0x20], esi
cmp esi, edi
jne 0x412ce8
push ebx
mov byte [esp + 0x1fc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412d8e
mov edx, dword [esp + 0xcc]
lea eax, [esp + 0xe8]
mov dword [esi], edx
lea ecx, [esi + 4]
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x412d00
sub eax, edi
push eax
lea eax, [esp + 0xec]
push eax
call fcn.00408130
mov ecx, dword [esp + 0xd8]
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0xe0]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0xcc]
add esi, 0x20
push esi
push edx
mov ecx, ebp
call fcn.004111c0
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00415440
push 1
mov ecx, esi
mov ebp, eax
call fcn.00415610
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
push ebx
mov dword [eax], ebp
mov byte [esp + 0x1fc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc4]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412aa4
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [ebp + 4]
call fcn.00412570
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x1e8
ret