Function at 0x475940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc354
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3f0
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4759d7
push 0x5e459c
lea ecx, [ebp - 0x340]
call fcn.0040bdb0
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2e8]
push ecx
lea ecx, [ebp - 0x31c]
call fcn.0040bfb0
push 0x638098
lea edx, [ebp - 0x31c]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x340]
call fcn.0040b3b0
mov dword [ebp - 0x2e0], 0
push 0x228
push 0
lea eax, [ebp - 0x2dc]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2e0], 0x22c
push 4
lea ecx, [ebp - 0x18]
call fcn.00417e30
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push eax
lea ecx, [ebp - 0x18]
call fcn.00420f60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00418da0
cmp eax, 0xffffffff
jne 0x475b22
push 0x98
lea ecx, [ebp - 0xb4]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0xb4]
call fcn.00416190
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 3
push str.CreateToolhelp32Snapshot_failed__0x
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x2ec], eax
push 0x416260
mov ecx, dword [ebp - 0x2ec]
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::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0x2f0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x2f0]
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___unsigned_long_int_]
mov dword [ebp - 0x2f4], eax
push 0x5e44f4
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00414da0
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2fc]
push edx
lea ecx, [ebp - 0x328]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x328]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x358]
call fcn.0040b3b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.00415390
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00418da0
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x475bb3
lea edx, [ebp - 0x2bc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x475b9a
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x475b9a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jne 0x475b9a
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x300], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00421b30
mov eax, dword [ebp - 0x300]
jmp 0x475ca3
lea edx, [ebp - 0x2e0]
push edx
lea ecx, [ebp - 0x18]
call fcn.00418da0
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x475b3b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00421b30
jmp 0x475c91
mov dword [ebp - 4], 0xffffffff
jmp 0x475ca1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret