Function at 0x407640
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444015
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x45e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x38c], 0x128
lea eax, [ebp - 0x38c]
push eax
mov ecx, dword [ebp - 0x3a0]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov dword [ebp - 0x398], str.csgo.exe
lea edx, [ebp - 0x368]
mov dword [ebp - 0x394], edx
mov eax, dword [ebp - 0x394]
mov cl, byte [eax]
mov byte [ebp - 0x38d], cl
mov edx, dword [ebp - 0x398]
cmp cl, byte [edx]
jne 0x40770d
cmp byte [ebp - 0x38d], 0
je 0x407701
mov eax, dword [ebp - 0x394]
mov cl, byte [eax + 1]
mov byte [ebp - 0x38e], cl
mov edx, dword [ebp - 0x398]
cmp cl, byte [edx + 1]
jne 0x40770d
add dword [ebp - 0x394], 2
add dword [ebp - 0x398], 2
cmp byte [ebp - 0x38e], 0
jne 0x4076af
mov dword [ebp - 0x3a8], 0
jmp 0x407718
sbb eax, eax
or eax, 1
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
mov dword [ebp - 0x3b0], ecx
cmp dword [ebp - 0x3b0], 0
jne 0x407753
mov edx, dword [ebp - 0x384]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x45e454], eax
mov eax, dword [ebp - 0x384]
mov dword [0x45e450], eax
jmp 0x40776f
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x3a0]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407699
mov eax, dword [ebp - 0x384]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x264], 0x224
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x3a4]
push edx
call dword [sym.imp.KERNEL32.dll_Module32First]
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x45e558
call fcn.00407af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403200
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x4077a2
mov ecx, dword [ebp - 0x3a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3a4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3ac], 0x45e54c
mov ecx, dword [ebp - 0x3ac]
call fcn.00406fb0
mov dword [ebp - 0x39c], eax
mov ecx, dword [ebp - 0x3ac]
call fcn.00407ad0
mov dword [ebp - 0x3b4], eax
jmp 0x407844
mov eax, dword [ebp - 0x39c]
add eax, 0x18
mov dword [ebp - 0x39c], eax
mov ecx, dword [ebp - 0x39c]
cmp ecx, dword [ebp - 0x3b4]
je 0x407895
mov edx, dword [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x40]
call fcn.004032f0
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3b8], esp
lea eax, [ebp - 0x40]
push eax
call fcn.004032f0
call fcn.00407940
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403200
jmp 0x407835
call fcn.004073c0
push str.Netvars_Dumped__n
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
call fcn.00404280
add esp, 8
call fcn.004078f0
push 0x4045c0
push str.Unloaded_Modules
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call fcn.00404280
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442680
mov esp, ebp
pop ebp
ret