Function at 0x417b10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
call fcn.00408d3c
xor eax, eax
mov dword [ebp - 0x68], eax
test bl, bl
je 0x417bf2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 0x7fffffff
mov dword [ebp - 0x60], 0x7fffffff
mov dword [ebp - 0x5c], 0x80000000
mov dword [ebp - 0x58], 0x80000000
lea eax, [ebp - 0x70]
push eax
push 0x41782c
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x64]
cmp eax, 0x7fffffff
jge 0x417bf2
test eax, eax
jge 0x417b89
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x60], 0
jge 0x417b94
xor eax, eax
mov dword [ebp - 0x60], eax
cmp edi, dword [ebp - 0x5c]
jge 0x417b9c
mov dword [ebp - 0x5c], edi
cmp esi, dword [ebp - 0x58]
jge 0x417ba4
mov dword [ebp - 0x58], esi
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
sub edi, eax
mov esi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
sub esi, edx
add dword [ebp - 4], eax
add dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push 0x417940
call sub.user32.dll_EnumWindows
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.gdi32.dll_GetRgnBox
dec eax
jne 0x417bf2
mov eax, dword [ebp - 0x68]
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [ebp - 0x68], eax
test bl, bl
je 0x417c00
cmp dword [ebp - 0x68], 0
je 0x417cf2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, edi
call fcn.004153c8
test al, al
je 0x417cf2
cmp dword [ebp - 0x68], 0
je 0x417c5c
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], esi
push 0
call sub.gdi32.dll_GetStockObject
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_SelectClipRgn
push 0xcc0020
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_BitBlt
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x68], 0
je 0x417c9c
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x68]
push eax
call sub.gdi32.dll_DeleteObject
test bl, bl
je 0x417ce2
cmp byte [ebp + 0x10], 0
je 0x417cb0
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004179d4
pop ecx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
mov dl, 1
mov eax, dword [0x415364]
call fcn.004154a0
mov edx, eax
test edx, edx
je 0x417cd8
sub edx, 0xffffffbc
mov eax, dword [ebp + 8]
call fcn.00408d54
jmp 0x417d0c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00415484
jmp 0x417d0c
cmp dword [ebp - 0x68], 0
je 0x417d0c
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x68]
push eax
call sub.gdi32.dll_DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14