Function at 0x140035480
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6e0]
sub rsp, 0x7e0
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp + 0x484]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x480], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rbp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r13d, r13d
test eax, eax
je 0x14003554d
lea rdi, str.cs2.exe
mov rcx, r13
lea rdx, [rbp + 0x4ac]
nop dword [rax]
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140035530
cmp rcx, 8
jne 0x140035510
mov eax, dword [rbp + 0x488]
mov dword [0x14004672c], eax
lea rdx, [rbp + 0x480]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140035502
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp + 0x14]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x10], 0x438
mov edx, dword [0x14004672c]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1400355f7
lea rdi, str.client.dll
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp + 0x40]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400355dd
add rcx, 2
cmp rcx, 0xb
je 0x1400355d2
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x1400355dd
jmp 0x1400355b0
mov rax, qword [rbp + 0x38]
mov qword [0x140046730], rax
lea rdx, [rbp + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400355a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x14004672c]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140046718], rax
lea rdx, str.Counter_Strike_2
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140046720], rax
lea rdx, str._PID______
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400364d0
mov rcx, rax
mov edx, dword [0x14004672c]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400366a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str._MODULE______
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400364d0
mov rcx, rax
mov rdx, qword [0x140046730]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1400366a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str._HPROCESS______
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400364d0
mov rcx, rax
mov rdx, qword [0x140046718]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400366a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str._HWND______
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400364d0
mov rcx, rax
mov rdx, qword [0x140046720]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400366a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rbp - 0x40], 0x50
mov dword [rbp - 0x3c], 0x40
lea rax, [0x140035fb0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm1
lea rax, str.ImGui_Example
mov qword [rbp], rax
mov qword [rbp + 8], r13
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r13
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], 0x320
mov dword [rsp + 0x30], 0x500
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
lea r8, str.Dear_ImGui_DirectX11_Example
mov rdx, qword [rbp]
mov ecx, 0x800a8
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r14, rax
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14003fdb0]
movdqu xmmword [rbp + 0x468], xmm0
lea rdx, [rbp + 0x468]
mov rcx, r14
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov qword [rbp - 0x7c], r13
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x50], 2
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x80], 0x1c
mov dword [rsp + 0x78], 0x3c
mov dword [rsp + 0x7c], 1
mov dword [rbp - 0x6c], 0x20
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x74], 1
mov qword [rbp - 0x58], 1
mov dword [rbp + 0x450], 0xb000
mov dword [rbp + 0x454], 0xa000
lea rbx, [0x1400467f0]
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x458]
mov qword [rsp + 0x50], rax
lea rdi, [0x1400467e8]
mov qword [rsp + 0x48], rdi
lea rsi, [0x1400467d8]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x450]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x1400358f1
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x458]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x450]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140035912
call fcn.140035f30
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
jmp 0x140035ef6
mov rcx, qword [0x1400467d8]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [0x14003fc60]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400467e8]
mov rax, qword [rcx]
lea r9, [0x1400467d0]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r14
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rdi, qword [0x140046708]
test rdi, rdi
je 0x14003597d
inc dword [rdi + 0xf0]
mov ecx, 0x5e78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x450], rcx
mov qword [rbp + 0x458], rax
test rax, rax
je 0x1400359b1
xor edx, edx
mov rcx, rax
call fcn.140001db0
jmp 0x1400359b4
mov rax, r13
mov qword [0x140046708], rax
call fcn.140005610
test rdi, rdi
je 0x1400359ce
mov qword [0x140046708], rdi
jmp 0x1400359d5
mov rdi, qword [0x140046708]
or dword [rdi + 8], 3
xor ecx, ecx
call fcn.1400219b0
mov rcx, r14
call fcn.14002bdb0
mov r12, qword [0x1400467f0]
mov r15, qword [0x1400467e8]
mov rsi, qword [0x140046708]
test rsi, rsi
je 0x140035a08
inc dword [rsi + 0xf0]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140035a54
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
mov dword [rbx + 0x70], 0x1388
mov dword [rbx + 0x74], 0x2710
jmp 0x140035a57
mov rbx, r13
mov qword [rsi + 0x98], rbx
lea rax, str.imgui_impl_dx11
mov qword [rsi + 0x88], rax
or dword [rsi + 0xc], 8
mov qword [rbp + 0x450], r13
mov qword [rbp + 0x458], r13
mov qword [rsp + 0x68], r13
mov rax, qword [r15]
lea r8, [rbp + 0x450]
lea rdx, [0x14003f4c8]
mov rcx, r15
call qword [rax]
test eax, eax
jne 0x140035ae9
mov rcx, qword [rbp + 0x450]
mov rax, qword [rcx]
lea r8, [rbp + 0x458]
lea rdx, [0x14003f4d8]
call qword [rax + 0x30]
test eax, eax
jne 0x140035ae9
mov rcx, qword [rbp + 0x458]
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [0x14003f4e8]
call qword [rax + 0x30]
test eax, eax
jne 0x140035ae9
mov qword [rbx], r15
mov qword [rbx + 8], r12
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0x450]
test rcx, rcx
je 0x140035afb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x458]
test rcx, rcx
je 0x140035b0d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x20], r13
movss xmm2, dword [0x14003fd30]
lea rdx, str.font.ttf
mov rcx, qword [rdi + 0x38]
call fcn.140026920
lea rax, [0x14003efd0]
mov qword [rsp + 0x20], rax
movss xmm2, dword [0x14003fd28]
lea rdx, str.font.otf
mov rcx, qword [rdi + 0x38]
call fcn.140026920
mov rdi, rax
xor bl, bl
mov esi, 1
nop dword [rax + rax]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140035bd4
nop dword [rax + rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx ebx, bl
cmp dword [rsp + 0x78], 0x12
cmove ebx, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140035b90
test bl, bl
jne 0x140035dcb
mov qword [rbp + 0x450], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x458], xmm0
lea rdx, [rbp + 0x450]
mov rcx, qword [0x140046720]
call qword [sym.imp.USER32.dll_ClientToScreen]
lea rdx, [rbp + 0x458]
mov rcx, qword [0x140046720]
call qword [sym.imp.USER32.dll_GetClientRect]
movd xmm1, dword [rbp + 0x460]
cvtdq2ps xmm1, xmm1
movss dword [0x140046738], xmm1
movd xmm0, dword [rbp + 0x464]
cvtdq2ps xmm0, xmm0
movss dword [0x140046704], xmm0
cvttss2si eax, xmm0
cvttss2si ecx, xmm1
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp + 0x454]
mov r8d, dword [rbp + 0x450]
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [0x14004673c]
test r8d, r8d
je 0x140035d11
mov r9d, dword [0x1400467e0]
test r9d, r9d
je 0x140035d11
mov rcx, qword [0x1400467d0]
test rcx, rcx
je 0x140035ca8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400467d0], r13
mov r8d, dword [0x14004673c]
mov r9d, dword [0x1400467e0]
mov rcx, qword [0x1400467d8]
mov rax, qword [rcx]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor edx, edx
call qword [rax + 0x68]
mov dword [0x1400467e0], r13d
mov dword [0x14004673c], r13d
mov rcx, qword [0x1400467d8]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [0x14003fc60]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400467e8]
mov rax, qword [rcx]
lea r9, [0x1400467d0]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140046708]
test rax, rax
je 0x140035d26
mov rcx, qword [rax + 0x98]
jmp 0x140035d29
mov rcx, r13
cmp qword [rcx + 0x48], 0
jne 0x140035d35
call fcn.14002b760
call fcn.14002c730
call fcn.140007840
mov rcx, rdi
call fcn.1400334b0
call fcn.1400099f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x6c0], xmm0
mov rcx, qword [0x1400467f0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400467d0]
mov edx, esi
call qword [rax + 0x108]
mov rcx, qword [0x1400467f0]
mov rax, qword [rcx]
lea r8, [rbp + 0x6c0]
mov rdx, qword [0x1400467d0]
call qword [rax + 0x190]
mov rax, qword [0x140046708]
mov rcx, qword [rax + 0x48c8]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r13
cmp byte [rax], r13b
cmovne rcx, rax
call fcn.14002acf0
mov rcx, qword [0x1400467d8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, esi
call qword [rax + 0x40]
jmp 0x140035b70
mov rbx, qword [0x140046708]
test rbx, rbx
je 0x140035de0
mov rdi, qword [rbx + 0x98]
jmp 0x140035de3
mov rdi, r13
call fcn.14002bc90
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140035df7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140035e05
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140035e14
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x88], r13
mov qword [rbx + 0x98], r13
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x140046708]
test rax, rax
je 0x140035e38
dec dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140046708]
test rax, rax
je 0x140035e56
mov rdi, qword [rax + 0x90]
jmp 0x140035e59
mov rdi, r13
lea rbx, [rax + 8]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140035e73
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140046708]
mov qword [rbx + 0x78], r13
mov qword [rbx + 0x88], r13
and dword [rbx + 4], 0xfffffff8
test rax, rax
je 0x140035e8d
dec dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140046708]
mov qword [0x140046708], rbx
call fcn.140005a50
mov qword [0x140046708], r13
test rbx, rbx
je 0x140035ed8
mov rcx, rbx
call fcn.14001a360
mov rax, qword [0x140046708]
test rax, rax
je 0x140035ecf
dec dword [rax + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140035f30
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.140037240
lea r11, [rsp + 0x7e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret