Function at 0x40fe10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
call dword [eax + 0x228]
test eax, eax
je 0x40fe60
mov ecx, ebx
call fcn.0040dde0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push 0
call dword [edx + 0x224]
mov ecx, ebx
call fcn.0040e440
mov eax, dword [ebx + 0x4d4]
test eax, eax
jne 0x40fe7e
call fcn.004229d0
test eax, eax
jne 0x40ffce
push str.._vncDesktop.cpp:_tdisplay_resolution_or_desktop_changed._n
push 0
push 0x44ff14
call fcn.00401e70
lea esi, [ebx + 0x494]
mov eax, esi
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [ebp - 0x74], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6c], ecx
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov dword [ebx + 0x4d4], 0
call fcn.0040e530
test eax, eax
jne 0x40ff00
push str.._vncDesktop.cpp:_tfailed_to_close_desktop_server._n
push eax
push 0x44ff14
call fcn.00401e70
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
add esp, 0xc
call dword [edx + 0x20]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0040cdb0
mov ecx, ebx
call fcn.0040fa20
test eax, eax
jne 0x40ff40
push str.._vncDesktop.cpp:_tfailed_to_re_start_desktop_server._n
push eax
push 0x44ff14
call fcn.00401e70
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 0x20]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x74]
movzx edx, word [ebp - 0x76]
push ecx
push edx
movzx eax, di
push eax
push str.._vncDesktop.cpp:_tSCR:_old_screen_format__dx_dx_d_n
push 9
push 0x44ff14
call fcn.00401e70
movzx ecx, byte [ebx + 0x498]
movzx edx, word [ebx + 0x496]
movzx eax, word [esi]
add esp, 0x18
push ecx
push edx
push eax
push str.._vncDesktop.cpp:_tSCR:_new_screen_format__dx_dx_d_n
push 9
push 0x44ff14
call fcn.00401e70
add esp, 0x18
mov ecx, 6
lea edi, [ebp - 0x78]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40ffac
push str.._vncDesktop.cpp:_tscreen_format_has_changed._n
push 9
push 0x44ff14
call fcn.00401e70
add esp, 0xc
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x1f8]
lea ecx, [ebx + 0x54]
push ecx
lea ecx, [ebx + 0x4f8]
call fcn.0041f080
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x7c]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
call dword [eax + 0x1cc]
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0040d080
lea edi, [ebx + 0x54]
push edi
lea ecx, [ebp - 0x40]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4100c0
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x3c]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x38]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x34]
mov dword [eax + 0xc], esi
call dword [edx + 0x1d0]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x50]
sub ecx, eax
sub edx, esi
cmp edx, ecx
mov byte [ebp - 0x11], 0
jne 0x410062
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x4c]
sub eax, ecx
mov ecx, dword [ebp - 0x44]
sub ecx, esi
cmp ecx, eax
je 0x410066
mov byte [ebp - 0x11], 1
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1ec]
lea esi, [ebx + 0x4f8]
mov ecx, esi
call fcn.0041f060
mov al, byte [ebp - 0x11]
test al, al
je 0x410333
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x1b4]
test eax, eax
je 0x410333
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
jne 0x4100b5
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
je 0x410333
lea edx, [ebp - 0x40]
push edx
mov ecx, esi
call fcn.0041f080
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x1f0]
xor esi, esi
cmp eax, esi
je 0x4100f9
mov ecx, dword [ebx + 0x4dc]
push ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, ebx
call fcn.0040f5f0
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x4100f9
mov cl, byte [eax + 0x38]
test cl, cl
je 0x4100f9
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov dword [eax + 0x30], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x1f4]
cmp eax, esi
je 0x41030b
lea ecx, [ebp - 0x1c]
call fcn.00419790
mov ecx, dword [ebx + 0x2c]
cmp ecx, esi
mov byte [ebp - 4], 1
je 0x410143
mov al, byte [ecx + 0x38]
test al, al
je 0x410143
mov eax, dword [ebx + 0x58]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [edi]
push eax
push edx
lea eax, [ebx + 0x4f8]
push eax
push ebx
mov dword [ebp - 0x20], esi
call fcn.00406d60
jmp 0x410152
cmp dword [ebx + 0x10], esi
je 0x410152
mov ecx, ebx
mov dword [ebx + 0x10], esi
call fcn.0040fd70
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x1d8]
cmp eax, esi
jne 0x410170
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x1e8]
cmp eax, esi
je 0x41018a
mov eax, dword [ebx + 0x2c]
cmp eax, esi
je 0x41017e
mov cl, byte [eax + 0x3a]
test cl, cl
jne 0x41018a
push ebx
push 0x40ece0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebx + 0x4fc], esi
je 0x410243
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
lea edi, [ebx + 0x510]
push edi
lea esi, [ebx + 0x500]
push esi
call dword [edx + 0x70]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
sub esp, 0x10
mov edx, esi
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [ebx + 0x4fc], 0
mov dword [eax + 0xc], edx
call fcn.0040e300
mov eax, dword [ebx + 0x4dc]
push eax
push esi
mov ecx, ebx
call fcn.0040f5f0
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040f660
mov edi, dword [edi]
mov ecx, dword [esi]
mov edx, dword [ebx + 0x508]
mov eax, dword [ebx + 0x514]
sub edx, ecx
mov ecx, dword [ebx + 0x50c]
add edx, edi
mov dword [ebp - 0x60], edi
sub ecx, dword [ebx + 0x504]
add ecx, eax
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x54], ecx
lea edi, [ebx + 0x4f8]
push edx
mov ecx, edi
mov dword [ebp - 0x5c], eax
call fcn.0041f080
push esi
mov ecx, edi
call fcn.0041f120
lea ecx, [ebp - 0x18]
call fcn.00419790
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0041f060
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f080
lea ecx, [ebp - 0x18]
lea esi, [ebx + 0x4f8]
push ecx
mov ecx, esi
call fcn.0041f020
lea ecx, [ebp - 0x30]
call fcn.0040bf00
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x30]
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041f250
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040fb70
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x74]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
call dword [eax + 0x6c]
mov ecx, esi
call fcn.0041f060
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
je 0x4102e7
mov esi, dword [eax]
push eax
call fcn.00433391
add esp, 4
mov eax, esi
jmp 0x4102d1
push ecx
call fcn.00433391
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
call fcn.0041f060
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0041f060
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x1f0]
test eax, eax
jne 0x410329
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x1f4]
test eax, eax
je 0x410333
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x64]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret