Function at 0x140082190
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rdi, rcx
mov rsi, qword [rcx + 0x28]
test rsi, rsi
je 0x1400821cc
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x1400821cc
mov rax, rsi
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x1400821c3
mov rbx, qword [rcx + 0x10]
test rbx, rbx
jne 0x1400821d4
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x1400821b1
call fcn.140288f90
mov rbx, rax
mov edx, 2
lea rcx, [rdi + 0x18]
call fcn.140180e50
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x1400821f9
lock inc dword [rcx - 0x10]
mov edx, 1
lea rcx, [rdi + 0x18]
call fcn.140180e50
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov eax, dword [rdx - 0x10]
nop
test eax, 0x30000000
jne 0x14008221e
lock inc dword [rdx - 0x10]
xor edx, edx
lea rcx, [rdi + 0x18]
call fcn.140180e50
mov rcx, qword [rax]
mov qword [rsp + 0xb8], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x140082243
lock inc dword [rcx - 0x10]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0xb0], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14008225e
lock inc dword [rcx - 0x10]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0xa8], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x140082279
lock inc dword [rcx - 0x10]
lea rcx, [rbx + 0x38]
mov r10, qword [rcx]
mov qword [rsp + 0x40], rsi
mov eax, dword [rdi + 0x24]
mov dword [rsp + 0x38], eax
mov eax, dword [rdi]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xa8]
call qword [r10 + reloc.WS2_32.dll_htonl]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xa8]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
mov ebx, 0xffffffff
test eax, 0x30000000
jne 0x1400822f4
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x1400822f4
call fcn.1400daaa8
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14008231d
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14008231d
call fcn.1400daaa8
nop
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140082346
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140082346
call fcn.1400daaa8
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14008236c
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14008236c
call fcn.1400daaa8
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14008238f
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x14008238f
call fcn.1400daaa8
mov byte [rsp + 0xa0], 0
lea rdx, [rsp + 0xa0]
lea rcx, [0x1401ed650]
call qword [sym.imp.USER32.dll_EnumWindows]
movzx edx, byte [rsp + 0xa0]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.140287480
mov rcx, rbx
cmp dword [rdi + 0x38], 0
jne 0x1400823d4
call fcn.1402840e0
mov dword [rdi + 0x3c], eax
jmp 0x1400823ee
mov r8, qword [rdi + 0x30]
mov qword [rdi + 0x30], 0
mov r9b, 1
movzx edx, r9b
call fcn.1402693d0
xor ebx, ebx
test rbx, rbx
je 0x140082400
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret