Function at 0x6504d210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa4
push ebx
mov eax, ecx
push ebp
push esi
push edi
mov edi, dword [eax + 4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], edi
call dword [0x652b3ae8]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
add esp, 4
mov byte [esp + 0x13], 0
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
mov eax, dword [0x652b22d4]
mov dword [esp + 0x60], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call dword [0x652b3e74]
xor ebx, ebx
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebx
test esi, esi
jle 0x6504d6e4
mov edi, dword [esp + 0x48]
add edi, 0x10c
mov dword [esp + 0x24], edi
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
add ecx, ebx
mov esi, dword [eax + ecx*4 + 0x10]
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call dword [0x652b3950]
push edi
lea ecx, [esp + 0x54]
call fcn.6504ced0
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x6504d2dc
nop
mov edi, dword [eax]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x6504d2c9
mov eax, dword [ecx + 4]
test eax, eax
mov eax, dword [esp + 0x54]
je 0x6504d2c9
mov ecx, dword [edi + 0x1c]
jmp 0x6504d2cb
xor ecx, ecx
cmp ecx, esi
je 0x6504d347
add eax, 4
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x58]
jne 0x6504d2b0
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
test eax, eax
je 0x6504d2fc
cmp eax, 0xffffffff
je 0x6504d309
mov eax, dword [esp + 0x50]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d309
push dword [esp + 0x50]
call dword [0x652b23cc]
add esp, 4
push 0x30
call fcn.652ae448
mov edi, eax
mov eax, esp
push 0
mov ecx, edi
mov dword [eax], 0x11
call sym.Qt5Widgets.dll_public:_void___thiscall_QWidget::constructor_class_QWidget___class_QFlags_enum_Qt::WindowType__
mov dword [edi], vtable.QDesktopScreenWidget.0
mov dword [edi + 8], vtable.QDesktopScreenWidget.1.0
test esi, esi
je 0x6504d4d5
push esi
call dword [0x652b2324]
add esp, 4
jmp 0x6504d4d7
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
test eax, eax
je 0x6504d367
cmp eax, 0xffffffff
je 0x6504d374
mov eax, dword [esp + 0x50]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d374
push dword [esp + 0x50]
call dword [0x652b23cc]
add esp, 4
test edi, edi
je 0x6504d309
movups xmm0, xmmword [edi + 0x20]
movd eax, xmm0
movups xmmword [esp + 0x94], xmm0
cmp dword [esp + 0x68], eax
jne 0x6504d3b9
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x9c]
jne 0x6504d3b9
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x98]
jne 0x6504d3b9
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0xa0]
je 0x6504d5b8
movups xmm0, xmmword [esp + 0x68]
lea eax, [esp + 0x68]
mov ecx, edi
push eax
movups xmmword [edi + 0x20], xmm0
call sym.Qt5Widgets.dll_public:_void___thiscall_QWidget::setGeometry_class_QRect_const__
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x6504d4c2
test eax, eax
je 0x6504d4c2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0x7fffffff
push 1
mov ecx, dword [eax + 8]
lea eax, [eax + ecx*4]
add eax, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call dword [0x652b23d0]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
lea edx, [ebp + 4]
add edx, esi
add esi, 4
lea eax, [ecx + edx*4]
lea edx, [ecx + esi*4]
mov esi, dword [esp + 0x34]
cmp esi, edx
je 0x6504d451
sub eax, edx
sar eax, 2
test eax, eax
jle 0x6504d451
shl eax, 2
push eax
push esi
push edx
call fcn.652afd9b
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
lea esi, [esi + ebp*4]
add eax, 4
lea edx, [ecx + eax*4]
mov eax, dword [ecx + 8]
add eax, ebp
lea ecx, [ecx + eax*4]
add ecx, 0x14
cmp esi, ecx
je 0x6504d487
sub edx, ecx
sar edx, 2
test edx, edx
jle 0x6504d487
lea eax, [edx*4]
push eax
push esi
push ecx
call fcn.652afd9b
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x6504d4a0
cmp eax, 0xffffffff
je 0x6504d4aa
or eax, 0xffffffff
lock xadd dword [ebx], eax
setne al
test al, al
jne 0x6504d4aa
push ebx
call dword [0x652b23cc]
add esp, 4
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0x10], ebx
jmp 0x6504d5b8
mov ebp, dword [0x652b23c4]
lea ecx, [esp + 0x14]
call ebp
mov dword [eax], ebx
jmp 0x6504d5be
xor eax, eax
mov dword [edi + 0x18], eax
mov ecx, edi
mov dword [edi + 0x1c], esi
push 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
call sym.Qt5Widgets.dll_public_virtual:_void___thiscall_QWidget::setVisible_bool_
mov ecx, edi
call sym.Qt5Widgets.dll_public:_class_QWindow____thiscall_QWidget::windowHandle_void_const
test eax, eax
je 0x6504d516
push esi
mov ecx, eax
call dword [0x652b38c4]
movups xmm0, xmmword [esp + 0x68]
lea eax, [esp + 0x68]
mov ecx, edi
push eax
movups xmmword [edi + 0x20], xmm0
call sym.Qt5Widgets.dll_public:_void___thiscall_QWidget::setGeometry_class_QRect_const__
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x88]
push 2
push str.1_q_updateScreens__
push ebp
push str.2geometryChanged_QRect_
push esi
push eax
call dword [0x652b22b4]
add esp, 0x18
lea ecx, [esp + 0x88]
call dword [0x652b22bc]
push 2
push str.1_q_availableGeometryChanged__
push ebp
push str.2availableGeometryChanged_QRect_
lea eax, [esp + 0x9c]
push esi
push eax
call dword [0x652b22b4]
add esp, 0x18
lea ecx, [esp + 0x8c]
call dword [0x652b22bc]
push 2
push str.1_q_updateScreens__
push ebp
push str.2destroyed__
lea eax, [esp + 0xa0]
push esi
push eax
call dword [0x652b22b4]
add esp, 0x18
lea ecx, [esp + 0x90]
call dword [0x652b22bc]
mov byte [esp + 0x13], 1
mov ebp, dword [0x652b23c4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, 1
je 0x6504d6af
test eax, eax
je 0x6504d6af
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x7fffffff
push 1
mov ecx, dword [eax + 8]
lea eax, [eax + ecx*4]
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call dword [0x652b23d0]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov ebp, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
lea edx, [ebp + 4]
add edx, esi
add esi, 4
lea eax, [ecx + edx*4]
lea edx, [ecx + esi*4]
mov esi, dword [esp + 0x34]
cmp esi, edx
je 0x6504d641
sub eax, edx
sar eax, 2
test eax, eax
jle 0x6504d641
shl eax, 2
push eax
push esi
push edx
call fcn.652afd9b
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
lea esi, [esi + ebp*4]
add eax, 4
lea edx, [ecx + eax*4]
mov eax, dword [ecx + 8]
add eax, ebp
lea ecx, [ecx + eax*4]
add ecx, 0x14
cmp esi, ecx
je 0x6504d677
sub edx, ecx
sar edx, 2
test edx, edx
jle 0x6504d677
lea eax, [edx*4]
push eax
push esi
push ecx
call fcn.652afd9b
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x6504d690
cmp eax, 0xffffffff
je 0x6504d69a
or eax, 0xffffffff
lock xadd dword [ebx], eax
setne al
test al, al
jne 0x6504d69a
push ebx
call dword [0x652b23cc]
add esp, 4
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0x10], edi
jmp 0x6504d6b7
lea ecx, [esp + 0x18]
call ebp
mov dword [eax], edi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
call dword [0x652b3b80]
mov edi, dword [esp + 0x24]
inc ebx
mov ebp, 0xffffffff
mov dword [esp + 0x2c], ebx
cmp ebx, dword [esp + 0x60]
jl 0x6504d280
mov edi, dword [esp + 0x28]
or ebp, ebp
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + 0x10c]
mov dword [edx + 0x10c], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x30]
push eax
call dword [0x652b3e5c]
push eax
mov ecx, edi
call sym.Qt5Widgets.dll_public:_void___thiscall_QWidget::setGeometry_class_QRect_const__
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
call fcn.6504ced0
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
cmp esi, ebx
je 0x6504d78c
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov ecx, dword [eax + 0x10c]
mov eax, dword [ecx + 0xc]
add eax, 4
lea edi, [ecx + eax*4]
mov eax, dword [ecx + 8]
add eax, 4
lea eax, [ecx + eax*4]
cmp eax, edi
je 0x6504d760
cmp dword [eax], edx
je 0x6504d77d
add eax, 4
cmp eax, edi
jne 0x6504d755
test edx, edx
je 0x6504d778
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 0xc]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov byte [esp + 0x13], 1
add esi, 4
mov dword [esp + 0x7c], esi
cmp esi, ebx
jne 0x6504d733
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
test eax, eax
je 0x6504d7ac
cmp eax, 0xffffffff
je 0x6504d7b9
mov eax, dword [esp + 0x78]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d7b9
push dword [esp + 0x78]
call dword [0x652b23cc]
add esp, 4
cmp byte [esp + 0x13], 0
mov esi, dword [0x652b23d8]
je 0x6504d7f0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
push 2
push sym.Qt5Widgets.dll_struct_QMetaObject_const_QDesktopWidget::staticMetaObject
push edi
mov dword [esp + 0x70], 0
call esi
add esp, 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
test eax, eax
jne 0x6504d853
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push dword [eax + 4]
call dword [0x652b23d4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov edi, dword [edx + 8]
add ecx, 4
add edi, 4
lea ebx, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
add ecx, 4
lea edi, [edx + edi*4]
lea ecx, [edx + ecx*4]
cmp ebx, edi
je 0x6504d863
sub ecx, edi
sar ecx, 2
test ecx, ecx
jle 0x6504d863
lea eax, [ecx*4]
push eax
push ebx
push edi
call fcn.652afd9b
add esp, 0xc
jmp 0x6504d85f
cmp eax, 0xffffffff
je 0x6504d85f
mov eax, dword [esp + 0x14]
lock inc dword [eax]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 8]
add eax, 4
lea ecx, [edx + eax*4]
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 0xc]
add eax, 4
mov dword [esp + 0x44], 1
lea eax, [edx + eax*4]
mov dword [esp + 0x40], eax
cmp ecx, eax
je 0x6504d8cd
mov edi, dword [esp + 0x28]
nop dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push 0
push sym.Qt5Widgets.dll_struct_QMetaObject_const_QDesktopWidget::staticMetaObject
push edi
mov dword [esp + 0x58], 0
call esi
mov ecx, dword [esp + 0x4c]
add esp, 0x10
add ecx, 4
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x40]
jne 0x6504d890
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
test eax, eax
je 0x6504d8e9
cmp eax, 0xffffffff
je 0x6504d8fa
mov eax, dword [esp + 0x38]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d8fa
push dword [esp + 0x38]
mov ebx, dword [0x652b23cc]
call ebx
add esp, 4
jmp 0x6504d900
mov ebx, dword [0x652b23cc]
lea ecx, [esp + 0x30]
call dword [0x652b3e6c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x6504d92a
cmp eax, 0xffffffff
je 0x6504d933
mov eax, dword [esp + 0x14]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d933
push dword [esp + 0x14]
call ebx
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x6504d953
cmp eax, 0xffffffff
je 0x6504d95c
mov eax, dword [esp + 0x18]
mov ecx, ebp
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x6504d95c
push dword [esp + 0x18]
call ebx
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x6504d97b
cmp eax, 0xffffffff
je 0x6504d984
mov eax, dword [esp + 0x20]
lock xadd dword [eax], ebp
dec ebp
setne al
test al, al
jne 0x6504d984
push dword [esp + 0x20]
call ebx
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret