Function at 0x180051f00
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov eax, r9d
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x44], r8d
mov r9, rdx
mov qword [rsp + 0x58], rdx
mov rsi, rcx
cmp dword [rcx + 0x60], 0
jge 0x180052876
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x60], eax
nop word [rax + rax]
mov rdi, r9
mov qword [rbp - 0x80], r9
mov ebx, r8d
mov qword [rsp + 0x70], rbx
cmp byte [rsi + 0x5a], 0
je 0x180051fe4
cmp byte [rsi + 0x5b], 0
je 0x180051f94
movsxd r8, r8d
lea rcx, [rsi + 0x78]
mov rdx, r9
call fcn.18002ea80
mov r8d, dword [rsp + 0x44]
mov r9, qword [rsp + 0x58]
add dword [rsi + 0x98], r8d
mov eax, dword [rsi + 0x98]
cmp eax, dword [rsi + 0x68]
setge byte [rsp + 0x40]
cmp byte [rsp + 0x40], 0
je 0x18005237d
mov byte [rsi + 0x5a], 0
cmp byte [rsi + 0x5b], 0
je 0x18005234a
lea rdi, [rsi + 0x78]
mov qword [rbp - 0x80], rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180051fd8
mov rdi, qword [rdi]
mov qword [rbp - 0x80], rdi
mov rbx, qword [rsi + 0x88]
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
mov r8d, dword [rsi + 0xc]
mov edx, ebx
mov rcx, rdi
call fcn.18008fb30
test al, al
jne 0x18005251a
mov eax, dword [rsi + 0xc]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x180052080
cmp ebx, 9
jge 0x180052032
xor al, al
mov edx, dword [rsp + 0x4c]
mov dword [rsp + 0x48], edx
jmp 0x1800520d8
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
shr ebx, 8
movzx edi, byte [rdi + 3]
mov rax, qword [rbp - 0x80]
movzx ecx, byte [rax + 4]
mov byte [rsp + 0x40], cl
mov ecx, dword [rax + 5]
call qword [sym.imp.WS2_32.dll_ntohl]
btr eax, 0x1f
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x50], eax
lea edx, [rbx + 9]
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], edx
and byte [rsp + 0x40], 1
test di, di
sete al
mov rdi, qword [rbp - 0x80]
jmp 0x1800520d8
cmp ebx, 8
jl 0x18005209c
cmp byte [rdi], 0x80
jne 0x18005209c
cmp byte [rdi + 1], 3
jne 0x18005209c
xor al, al
mov edx, dword [rsp + 0x4c]
mov dword [rsp + 0x48], edx
jmp 0x1800520d8
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
btr eax, 0x1f
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x50], eax
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xffffff
add eax, 8
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
cmp byte [rdi + 4], 1
sete byte [rsp + 0x40]
mov al, 1
mov edx, dword [rsp + 0x48]
test al, al
je 0x1800524d5
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax + 8]
mov r8, rax
mov r9d, dword [rsp + 0x60]
cmp byte [rcx + 0x19], 0
jne 0x18005210e
cmp dword [rcx + 0x20], r9d
jge 0x180052102
mov rcx, qword [rcx + 0x10]
jmp 0x180052108
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1800520f6
cmp r8, rax
je 0x180052129
cmp r9d, dword [r8 + 0x20]
jl 0x180052129
mov qword [rbp + 0xf0], r8
lea rbx, [rbp + 0xf0]
jmp 0x180052133
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x78]
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x70]
cmp rbx, qword [rsi + 0x38]
je 0x180052493
mov dword [rsi + 8], r9d
mov ecx, dword [rsp + 0x48]
cmp eax, ecx
jl 0x18005241f
mov word [rsi + 0x59], 0
mov eax, dword [rsi + 0xc]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x180052189
mov edx, 9
lea r8d, [rcx - 9]
test byte [rdi + 4], 8
je 0x180052192
mov edx, 0xa
movzx eax, byte [rdi + 9]
mov r8d, ecx
sub r8d, eax
sub r8d, edx
jmp 0x180052192
mov edx, 8
lea r8d, [rcx - 8]
mov rcx, qword [rbx + 0x28]
movsxd rdx, edx
add rdx, rdi
add rcx, 0x28
call fcn.1800887d0
test al, al
je 0x1800523ba
cmp byte [rsp + 0x40], 0
je 0x1800522ef
mov rax, qword [rbx + 0x28]
mov byte [rax + 0xe0], 1
mov rcx, qword [rbx + 0x28]
mov rdx, qword [rcx + 0x130]
lea r8, [rsi + 0x5d]
add rcx, 0x28
mov r9b, 1
call fcn.18003c7c0
call fcn.180011560
test al, al
je 0x180052220
cmp byte [rsi + 0x5c], 0
je 0x180052220
cmp byte [rsi + 0x5d], 0
jne 0x180052220
mov eax, dword [0x180002ca4]
test eax, eax
jne 0x180052218
xor edx, edx
lea rcx, [0x18005d590]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [0x180002ca4], 5
jmp 0x180052220
dec eax
mov dword [0x180002ca4], eax
mov rdx, qword [rbx + 0x28]
xor eax, eax
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x110], rax
mov byte [rbp + 0x100], al
add rdx, 0xc0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.180011db0
nop
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], 0
mov byte [rbp - 0x78], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x78]
call fcn.180011db0
nop
mov r9, qword [rbx + 0x28]
lea rax, [rsi + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsi + 0xc]
mov edx, dword [rbx + 0x20]
lea rcx, [rbp - 0x78]
call fcn.18008f6e0
mov byte [rsi + 0x59], 1
cmp qword [rbp + 0x118], 0x10
jb 0x1800522d2
mov rcx, qword [rbp + 0x100]
call fcn.18008fef0
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x110], 0
mov byte [rbp + 0x100], 0
movsxd rdx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
cmp eax, edx
jle 0x1800523a5
mov r8d, eax
sub r8d, edx
mov dword [rsp + 0x44], r8d
add rdi, rdx
movsxd rdx, r8d
mov r9, qword [rsp + 0x58]
test r8d, r8d
jle 0x18005233f
mov rcx, r9
sub rdi, r9
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
dec rdx
jne 0x180052330
cmp dword [rsi + 0x60], 0
jge 0x18005239c
jmp 0x180051f60
sub eax, dword [rsi + 0x68]
test eax, eax
jle 0x180052394
sub r8d, eax
mov dword [rsp + 0x44], r8d
mov ecx, dword [rsp + 0x54]
sub ecx, r8d
movsxd rdx, r8d
add rdx, r9
mov r9d, ecx
mov r8d, eax
mov rcx, rsi
call fcn.180051f00
add eax, dword [rsp + 0x44]
jmp 0x180052884
mov ecx, dword [rsi + 8]
test ecx, ecx
jle 0x180052394
mov r8, r9
mov edx, dword [rsi + 0xc]
call fcn.18008f8c0
jmp 0x180052884
mov eax, r8d
jmp 0x180052884
mov eax, dword [rsp + 0x54]
jmp 0x180052876
mov r8, qword [rsp + 0x58]
mov edx, dword [rsi + 0xc]
mov ecx, dword [rsi + 8]
call fcn.18008f8c0
jmp 0x180052884
lea rdx, [0x180104ac8]
lea rcx, [rbp - 0x10]
call fcn.18001d390
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.180055ef0
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.18001d5d0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800523ef
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x58]
call fcn.1800b3cb8
nop
lea rax, vtable.message_exception.0
mov qword [rbp - 0x58], rax
lea rdx, [0x18015b288]
lea rcx, [rbp - 0x58]
call fcn.1800b9878
nop
mov dword [rsi + 0x68], ecx
lea rcx, [rsi + 0x78]
xor r8d, r8d
mov qword [rcx + 0x10], r8
cmp qword [rcx + 0x18], 0x10
jb 0x180052439
mov rdx, qword [rcx]
jmp 0x18005243c
mov rdx, rcx
mov byte [rdx], r8b
mov dword [rsi + 0x98], r8d
mov word [rsi + 0x5a], 0x101
movzx r8d, byte [rsp + 0x40]
mov byte [rsi + 0x59], r8b
movsxd r8, eax
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
call fcn.18002ea80
mov rcx, qword [rsp + 0x70]
add ecx, dword [rsi + 0x98]
mov dword [rsi + 0x98], ecx
cmp ecx, dword [rsi + 0x68]
jl 0x180052480
mov byte [rsi + 0x5a], 0
mov r8, rdi
mov edx, dword [rsi + 0xc]
mov ecx, dword [rsi + 8]
call fcn.18008f8c0
jmp 0x180052884
xor r8d, r8d
mov dword [rsi + 8], r8d
cmp eax, edx
jge 0x1800524de
mov dword [rsi + 0x68], edx
lea rcx, [rsi + 0x78]
mov qword [rcx + 0x10], r8
cmp qword [rcx + 0x18], 0x10
jb 0x1800524b3
mov rcx, qword [rcx]
mov byte [rcx], r8b
mov word [rsi + 0x5a], 1
movzx r8d, byte [rsp + 0x40]
mov byte [rsi + 0x59], r8b
mov dword [rsi + 0x98], eax
cmp eax, dword [rsi + 0x68]
jl 0x1800524d5
mov byte [rsi + 0x5a], 0
mov eax, dword [rsp + 0x44]
jmp 0x180052884
mov byte [rsi + 0x5a], r8b
movzx r8d, byte [rsp + 0x40]
mov byte [rsi + 0x59], r8b
sub eax, edx
test eax, eax
jle 0x1800524d5
mov ebx, dword [rsp + 0x44]
sub ebx, eax
mov r9d, dword [rsp + 0x54]
sub r9d, ebx
movsxd rdx, ebx
add rdx, qword [rsp + 0x58]
mov r8d, eax
mov rcx, rsi
call fcn.180051f00
add eax, ebx
jmp 0x180052884
mov eax, dword [rsp + 0x4c]
cmp ebx, eax
jge 0x180052579
mov dword [rsi + 0x68], eax
mov byte [rsi + 0x5a], 1
lea rcx, [rsi + 0x78]
xor edx, edx
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 0x10
jb 0x18005253f
mov rax, qword [rcx]
jmp 0x180052542
mov rax, rcx
mov byte [rax], dl
mov dword [rsi + 0x98], edx
mov byte [rsi + 0x5b], 1
movsxd r8, ebx
mov rdx, qword [rsp + 0x58]
call fcn.18002ea80
mov edx, dword [rsi + 0x98]
add edx, ebx
mov dword [rsi + 0x98], edx
cmp edx, dword [rsi + 0x68]
jl 0x180052572
mov byte [rsi + 0x5a], 0
mov eax, ebx
jmp 0x180052884
mov eax, dword [rsi + 0xc]
cmp eax, 2
jl 0x180052845
cmp eax, 3
jle 0x1800525a0
cmp eax, 4
jne 0x180052845
mov eax, dword [rsp + 0x64]
dec eax
test eax, 0xfffffff7
jmp 0x1800525ac
mov eax, dword [rsp + 0x64]
cmp eax, 2
je 0x1800525b2
cmp eax, 8
jne 0x180052845
xor eax, eax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
call fcn.180040a10
mov qword [rbp + 0xf0], rax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + select]
mov rbx, rax
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + reloc.WS2_32.dll_htonl]
mov r9, rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r8d, dword [rsi + 0xc]
mov rbx, qword [rsp + 0x70]
mov edx, ebx
mov rcx, rdi
call fcn.18008fc60
test eax, eax
jle 0x180052657
cmp qword [rbp + 0xf8], 0
jbe 0x180052777
mov r8d, dword [rsp + 0x50]
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call fcn.180053780
jmp 0x180052777
cmp byte [rsi + 0x58], 0
jne 0x180052777
mov ecx, dword [rsp + 0x50]
mov eax, ecx
and eax, 0x80000001
jge 0x180052675
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x180052777
lea eax, [rcx - 2]
test eax, eax
mov ecx, 0
cmovs eax, ecx
mov dword [rsi + 0x60], eax
mov dword [rsi + 0x64], ecx
cmp dword [rsp + 0x44], ebx
jne 0x180052777
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.180051e70
mov esi, eax
mov rdi, qword [rbp + 0xf0]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x1800526f9
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xf0]
call fcn.180040440
mov rax, qword [rbp + 0xf0]
mov qword [rax + 8], rax
mov rax, qword [rbp + 0xf0]
mov qword [rax], rax
mov rax, qword [rbp + 0xf0]
mov qword [rax + 0x10], rax
xor eax, eax
mov qword [rbp + 0xf8], rax
jmp 0x180052764
cmp rbx, rdi
je 0x180052764
nop
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x18005274e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18005272e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18005274e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180052720
jmp 0x18005274e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18005274b
cmp rbx, qword [rax + 0x10]
jne 0x18005274b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180052738
mov rbx, rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0xf0]
call fcn.18003e480
cmp rbx, rdi
jne 0x180052700
mov rcx, qword [rbp + 0xf0]
call fcn.18008fef0
mov eax, esi
jmp 0x180052884
mov rdi, qword [rbp + 0xf0]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x1800527c1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xf0]
call fcn.180040440
mov rax, qword [rbp + 0xf0]
mov qword [rax + 8], rax
mov rax, qword [rbp + 0xf0]
mov qword [rax], rax
mov rax, qword [rbp + 0xf0]
mov qword [rax + 0x10], rax
xor eax, eax
mov qword [rbp + 0xf8], rax
jmp 0x180052834
cmp rbx, rdi
je 0x180052834
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x18005281e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800527fe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18005281e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800527f0
jmp 0x18005281e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18005281b
cmp rbx, qword [rax + 0x10]
jne 0x18005281b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180052808
mov rbx, rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0xf0]
call fcn.18003e480
cmp rbx, rdi
jne 0x1800527c6
mov rcx, qword [rbp + 0xf0]
call fcn.18008fef0
mov rbx, qword [rsp + 0x70]
sub ebx, dword [rsp + 0x4c]
test ebx, ebx
jle 0x1800524d5
mov edi, dword [rsp + 0x44]
sub edi, ebx
mov r9d, dword [rsp + 0x54]
sub r9d, edi
movsxd rdx, edi
add rdx, qword [rsp + 0x58]
mov r8d, ebx
mov rcx, rsi
call fcn.180051f00
add eax, edi
jmp 0x180052884
mov r8d, eax
mov rdx, r9
mov rcx, rsi
call fcn.180051e70
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800b33c0
add rsp, 0x238
pop rdi
pop rsi
pop rbx
pop rbp
ret