Function at 0x140081620
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 0x14008165c
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x14008165c
mov rax, rsi
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x140081653
mov rbx, qword [rcx + 0x10]
test rbx, rbx
jne 0x140081664
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x140081641
call fcn.1402871e0
mov rbx, rax
mov edx, 2
lea rcx, [rdi + 0x18]
call fcn.14017f2f0
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
mov ecx, dword [rdx - 0x10]
nop
test ecx, 0x30000000
jne 0x14008168a
lock inc dword [rdx - 0x10]
mov edx, 1
lea rcx, [rdi + 0x18]
call fcn.14017f2f0
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov eax, dword [rdx - 0x10]
nop
test eax, 0x30000000
jne 0x1400816af
lock inc dword [rdx - 0x10]
xor edx, edx
lea rcx, [rdi + 0x18]
call fcn.14017f2f0
mov rcx, qword [rax]
mov qword [rsp + 0xb8], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x1400816d4
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 0x1400816ef
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 0x14008170a
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 0x140081785
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x140081785
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1400817ae
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1400817ae
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1400817d7
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1400817d7
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1400817fd
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1400817fd
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140081820
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x140081820
call fcn.1400da0f0
mov byte [rsp + 0xa0], 0
lea rdx, [rsp + 0xa0]
lea rcx, [0x1401ebbb0]
call qword [sym.imp.USER32.dll_EnumWindows]
movzx edx, byte [rsp + 0xa0]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.1402856d0
mov rcx, rbx
cmp dword [rdi + 0x38], 0
jne 0x140081865
call fcn.1402822c0
mov dword [rdi + 0x3c], eax
jmp 0x14008187f
mov r8, qword [rdi + 0x30]
mov qword [rdi + 0x30], 0
mov r9b, 1
movzx edx, r9b
call fcn.1402671a0
xor ebx, ebx
test rbx, rbx
je 0x140081891
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