Function at 0x401050
Capabilities:
Enumerate process modules
Enumerate processes
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
push 0x228
lea eax, [esp + 0x448]
push 0
push eax
call fcn.00402490
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
mov dword [esp + 0x440], 0x22c
mov dword [esp + 0x18], 0x428
push 0
push 2
call ebx
mov esi, eax
lea eax, [esp + 0x440]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
mov ecx, str.Among_Us.exe
lea eax, [esp + 0x464]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4010f6
test dx, dx
je 0x4010f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4010f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4010d0
xor eax, eax
jmp 0x4010fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x401123
lea eax, [esp + 0x440]
push eax
push esi
call edi
test eax, eax
jne 0x4010c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.00401434
mov esp, ebp
pop ebp
ret
push dword [esp + 0x448]
push 8
call ebx
push dword [esp + 0x448]
mov esi, eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop word [eax + eax]
mov ecx, str.GameAssembly.dll
lea eax, [esp + 0x38]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401196
test dx, dx
je 0x401192
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401196
add eax, 4
add ecx, 4
test dx, dx
jne 0x401170
xor eax, eax
jmp 0x40119b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4011b0
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x401160
jmp 0x401413
push dword [esp + 0x30]
push 1
call fcn.004043d0
add esp, 8
mov dword [esp + 0x674], 0
mov ebx, eax
lea eax, [esp + 0x674]
mov dword [esp + 0x14], ebx
push eax
push dword [esp + 0x34]
push ebx
push dword [esp + 0x38]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [esp + 0x30]
xor edi, edi
lea eax, [esi - 5]
test eax, eax
je 0x4012a2
nop dword [eax + eax]
xor edx, edx
mov al, byte [edx + 0x41ab18]
lea ecx, [edx + edi]
cmp al, byte [ecx + ebx]
jne 0x401296
cmp edx, 4
je 0x401221
inc edx
cmp edx, 5
jb 0x401202
jmp 0x401296
push str.____Patching_n
call fcn.00401010
add esp, 4
lea eax, [esp + 0x678]
push 0x34
push 0
push eax
call fcn.00402490
add esp, 0xc
xor esi, esi
lea ebx, [esi + 0x50]
call fcn.00404527
cdq
idiv ebx
movzx eax, word [edx*2 + 0x41aa08]
add word [esp + esi*2 + 0x678], ax
inc esi
cmp esi, 0x19
jne 0x401247
lea eax, [esp + 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [esp + 0x2c]
push 0
push 8
inc eax
push 0x41c8f8
add eax, edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
inc edi
lea eax, [esi - 5]
cmp edi, eax
jb 0x401200
lea eax, [esi - 7]
xor edi, edi
test eax, eax
je 0x401352
nop
xor edx, edx
mov al, byte [edx + 0x41ab10]
lea ecx, [edx + edi]
cmp al, byte [ecx + ebx]
jne 0x401346
cmp edx, 6
je 0x4012d1
inc edx
cmp edx, 7
jb 0x4012b2
jmp 0x401346
push str.____Patching_n
call fcn.00401010
add esp, 4
lea eax, [esp + 0x678]
push 0x34
push 0
push eax
call fcn.00402490
add esp, 0xc
xor esi, esi
lea ebx, [esi + 0x50]
call fcn.00404527
cdq
idiv ebx
movzx eax, word [edx*2 + 0x41aa08]
add word [esp + esi*2 + 0x678], ax
inc esi
cmp esi, 0x19
jne 0x4012f7
lea eax, [esp + 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [esp + 0x2c]
push 0
push 6
inc eax
push 0x41c8f0
add eax, edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
inc edi
lea eax, [esi - 7]
cmp edi, eax
jb 0x4012b0
lea eax, [esi - 0x13]
xor edi, edi
test eax, eax
je 0x40140a
nop
xor eax, eax
mov cl, byte [eax + 0x41aafc]
lea edx, [eax + edi]
cmp cl, byte [edx + ebx]
jne 0x4013fe
cmp eax, 0x12
je 0x401384
inc eax
cmp eax, 0x13
jb 0x401362
jmp 0x4013fe
push str.____Patching_n
call fcn.00401010
add esp, 4
lea eax, [esp + 0x678]
push 0x34
push 0
push eax
call fcn.00402490
add esp, 0xc
xor esi, esi
lea ebx, [esi + 0x50]
nop word [eax + eax]
call fcn.00404527
cdq
idiv ebx
movzx eax, word [edx*2 + 0x41aa08]
add word [esp + esi*2 + 0x678], ax
inc esi
cmp esi, 0x19
jne 0x4013b0
lea eax, [esp + 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [esp + 0x2c]
push 0
push 2
push 0x41c900
add eax, edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
inc edi
lea eax, [esi - 0x13]
cmp edi, eax
jb 0x401360
push ebx
call fcn.004063e0
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6ac]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401434
mov esp, ebp
pop ebp
ret