Function at 0x4011a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40281d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401239
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401239
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x228]
push str.ac_client.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x40148d
lea eax, [ebp - 0x24c]
push eax
push esi
call ebx
test eax, eax
jne 0x401210
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00401a20
push ebx
push 0
push 0x1fffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esi, 0x10f4f4
push 0x401950
push esi
push 0x401180
mov edx, str.DynmicPtrBaseAddr_
mov dword [ebp - 0x258], eax
call fcn.00401730
mov edx, 0x403214
mov ecx, eax
call fcn.00401730
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::ios_base_____cdecl___class_std::ios_base___]
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___unsigned_int_]
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_____]
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x284], 0x374
sub eax, ecx
mov dword [ebp - 0x280], 0x14
xor edi, edi
mov dword [ebp - 0x260], eax
xor ebx, ebx
sar eax, 2
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 0
xor edx, edx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x250], edx
test eax, eax
je 0x401354
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401980
push dword [ebp - 0x260]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x284]
push eax
push edi
mov dword [ebp - 0x274], edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x25c]
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x270], ebx
lea edx, [edi + eax*4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
xor edi, edi
sub edx, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x25c], edi
xor ecx, ecx
mov dword [ebp - 0x290], edi
mov edi, edx
sar edi, 2
mov dword [ebp - 0x278], edx
xor edx, edx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], eax
test edi, edi
je 0x4013fa
push edi
lea ecx, [ebp - 0x290]
call fcn.00401980
push dword [ebp - 0x278]
mov edi, dword [ebp - 0x290]
push dword [ebp - 0x250]
mov dword [ebp - 0x25c], edi
push edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x264]
mov edx, edi
add esp, 0xc
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edx
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x260], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x250], esi
sar eax, 2
xor edi, edi
test eax, eax
je 0x401458
sub ecx, dword [ebp - 0x268]
sar ecx, 2
mov dword [ebp - 0x264], ecx
mov ebx, ecx
nop dword [eax]
push 0
push 4
lea eax, [ebp - 0x250]
push eax
push esi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x26c]
mov esi, dword [eax + edi*4]
inc edi
add esi, dword [ebp - 0x250]
mov dword [ebp - 0x250], esi
cmp edi, ebx
jb 0x401420
mov ebx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x25c]
test edx, edx
je 0x4014a2
mov ecx, dword [ebp - 0x260]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x401498
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401498
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, dword [ebp - 0x244]
jmp 0x401239
push ecx
push edx
call fcn.00401b07
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.ammoAddr_
push 0x401950
push esi
push 0x401180
call fcn.00401730
mov edx, 0x403214
mov ecx, eax
call fcn.00401730
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::ios_base_____cdecl___class_std::ios_base___]
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___unsigned_int_]
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 edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x254]
push 0
push 4
push eax
push esi
push dword [ebp - 0x258]
mov dword [ebp - 0x254], 0
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Current_ammo_
push 0x401950
push dword [ebp - 0x254]
push 0x401160
call fcn.00401730
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::ios_base_____cdecl___class_std::ios_base___]
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___int_]
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_____]
push 0
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x539
push eax
push esi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 4
lea eax, [ebp - 0x254]
push eax
push esi
push dword [ebp - 0x258]
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.New_ammo_
push 0x401950
push dword [ebp - 0x254]
push 0x401160
call fcn.00401730
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::ios_base_____cdecl___class_std::ios_base___]
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___int_]
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_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x4015e4
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x4015da
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4015da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push ecx
call fcn.00401b07
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.00401ac9
mov esp, ebp
pop ebp
ret