Function at 0x583370
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6113e4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
call fcn.00527660
cmp eax, 0x203
jl 0x5834ec
cmp byte [0x801310], 0
jne 0x5833f1
push str.Comctl32.dll
mov byte [0x801310], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x5833f1
push str.TaskDialogIndirect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x801260], eax
jmp 0x5833f6
mov eax, dword [0x801260]
test eax, eax
je 0x5834ec
push 0x28
call fcn.004a7e6f
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x58341d
mov esi, dword [eax + 8]
jmp 0x58341f
xor esi, esi
mov ecx, edi
call fcn.00532ee0
mov byte [ebp - 4], 2
lea ecx, [edi + 8]
mov edx, esi
mov dword [edi], vtable.juce::WindowsMessageBoxBase.0
call fcn.00494d70
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi], vtable.juce::WindowsTaskDialog.0
mov eax, dword [ebx]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x14], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x58346e
mov eax, esi
lock xadd dword [ecx], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x18], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x583485
mov eax, esi
lock xadd dword [ecx], eax
add ebx, 0xc
push 0
mov ecx, ebx
call fcn.00514a00
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5834a7
mov eax, esi
lock xadd dword [ecx], eax
push 1
mov ecx, ebx
call fcn.00514a00
mov eax, dword [eax]
mov dword [edi + 0x20], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5834c6
mov eax, esi
lock xadd dword [ecx], eax
push 2
mov ecx, ebx
call fcn.00514a00
mov eax, dword [eax]
mov dword [edi + 0x24], eax
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x5834e2
lock xadd dword [eax], esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], edi
jmp 0x583644
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0xc]
mov esi, 1
cmp eax, 3
jne 0x583500
mov edi, eax
jmp 0x58355d
cmp eax, 2
jne 0x58355b
push 0
call fcn.00514a00
mov eax, dword [eax]
lea edx, [eax - 8]
mov dword [ebp - 0x18], edx
cmp edx, 0x7a1354
je 0x583522
mov ecx, esi
lock xadd dword [edx], ecx
push 0x7b5008
push eax
call fcn.0041f150
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
and edi, 3
inc edi
cmp ecx, 0x7a1354
je 0x58355d
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x58355d
push ecx
call fcn.004a8172
add esp, 4
jmp 0x58355d
xor edi, edi
push 0x1c
call fcn.004a7e6f
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x58357d
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x18], ecx
jmp 0x583584
mov dword [ebp - 0x18], 0
mov ecx, eax
call fcn.00532ee0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 8]
mov dword [eax], vtable.juce::WindowsMessageBoxBase.0
call fcn.00494d70
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov byte [ebp - 0xd], 0
mov dword [ecx + 0xc], eax
mov dword [ecx], vtable.juce::PreVistaMessageBox.0
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xd]
push eax
push 0x583670
call dword [sym.imp.USER32.dll_EnumWindows]
xor ecx, ecx
mov eax, 0x40000
cmp byte [ebp - 0xd], cl
cmovne ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, 1
je 0x583605
sub eax, 1
je 0x5835fe
sub eax, 1
je 0x5835f7
mov eax, 0x12000
jmp 0x58360a
mov eax, 0x12040
jmp 0x58360a
mov eax, 0x12030
jmp 0x58360a
mov eax, 0x12020
or eax, ecx
mov ecx, dword [ebp - 0x14]
or eax, edi
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 0x14], eax
lea edx, [eax - 8]
cmp edx, 0x7a1354
je 0x58362b
mov eax, esi
lock xadd dword [edx], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 0x18], eax
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x58363f
lock xadd dword [eax], esi
mov esi, dword [ebp - 0x1c]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x583651
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret