Function at 0x140057ed0
Capabilities:
Enumerate process modules
Get graphical window text
Get process image filename

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14, r9
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
xor ebx, ebx
mov qword [rdx], rbx
xor r8d, r8d
lea rdx, [0x140129a38]
mov rcx, r13
call fcn.140002120
xor r8d, r8d
lea rdx, [0x140129a38]
mov rcx, r14
call fcn.140002120
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [r12], rax
test rax, rax
je 0x140058346
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
movups xmm0, xmmword [str.unknown]
movaps xmmword [rsp + 0x50], xmm0
xor edx, edx
mov r8d, 0x1f8
lea rcx, [rsp + 0x60]
call fcn.1400dd9f0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140058346
mov rcx, rax
cmp dword [rdi + 8], ebx
je 0x140058258
mov r8d, 0x104
lea rdx, [rsp + 0x50]
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1400581e3
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14005802f
movzx edi, cx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x140058131
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400029f0
mov rbx, qword [rsp + 0x20]
jmp 0x140058131
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400580a6
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140058131
cmp dword [rdx + 0x10], eax
jge 0x140058079
cmp dword [rbx - 0xc], eax
jge 0x14005806e
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140058131
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005808f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140058131
mov r14d, dword [rbx - 0x10]
lea r12, [rsp + 0x50]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x1400580c4
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400580e6
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400020c0
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14005810a
lea r8, [rbx + r12*2]
call fcn.1400d4ebc
jmp 0x140058114
lea r8, [rsp + 0x50]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x1400581d6
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
mov r12, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov edx, 0x5c
mov rcx, rbx
call fcn.1400d99e0
test rax, rax
je 0x14005819a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14005819a
mov r8d, dword [rbx - 0x10]
sub r8d, eax
dec r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140016140
nop
mov rdx, rax
mov rcx, r14
call fcn.140001cf0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140058193
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x20]
jmp 0x1400581bc
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140002120
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400581e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x1400581e1
mov ecx, 0x80070057
call fcn.1400022b0
nop
xor ebx, ebx
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edx, [rax + 1]
mov rcx, r13
call fcn.140001ec0
mov rdx, rax
lea r8d, [rdi + 1]
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov rcx, qword [r13]
test rcx, rcx
jne 0x140058224
mov eax, ebx
jmp 0x140058231
movsxd rdx, dword [rcx - 0xc]
call fcn.1400d4f10
test eax, eax
js 0x14005824d
mov rcx, qword [r13]
cmp eax, dword [rcx - 0xc]
jg 0x14005824d
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r13]
mov word [rax + rcx*2], bx
jmp 0x140058327
mov ecx, 0x80070057
call fcn.1400022b0
int3
lea r9, [rsp + 0x2c]
mov r8d, 8
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140058323
mov r9d, 0x208
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140002120
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edx, [rax + 1]
mov rcx, r13
call fcn.140001ec0
mov rdx, rax
lea r8d, [rdi + 1]
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov rcx, qword [r13]
test rcx, rcx
jne 0x1400582f2
mov eax, ebx
jmp 0x1400582ff
movsxd rdx, dword [rcx - 0xc]
call fcn.1400d4f10
test eax, eax
js 0x140058318
mov rcx, qword [r13]
cmp eax, dword [rcx - 0xc]
jg 0x140058318
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r13]
mov word [rax + rcx*2], bx
jmp 0x140058327
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov edi, dword [rsp + 0x2c]
test edi, edi
jne 0x14005833d
xor r8d, r8d
lea rdx, [0x140129a38]
mov rcx, r13
call fcn.140002120
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret