Function at 0x4897a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a9], 0
jne 0x4897cb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1b0], 0
jbe 0x489a52
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x489a4b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
call sub.user32.dll_BeginPaint
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
call sub.user32.dll_FindWindowExW
push 2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
push 0
call sub.user32.dll_GetMenuItemID
mov ecx, dword [ebp - 0x28]
neg ecx
mov edx, dword [ebp - 0x2c]
neg edx
lea eax, [ebp - 0x1c]
call fcn.00407bd4
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
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_ExcludeClipRect
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b0]
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_GetCapture
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
call sub.user32.dll_FillRect
mov ebx, eax
test ebx, 0x200000
je 0x48989f
push 0x14
mov eax, dword [0x4a70c0]
mov eax, dword [eax]
call eax
add dword [ebp - 0x24], eax
test ebx, 0x100000
je 0x4898b5
push 0x15
mov eax, dword [0x4a70c0]
mov eax, dword [eax]
call eax
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a9], 0
je 0x48998a
xor esi, esi
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x1a7]
test dl, dl
je 0x4898e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
add esi, eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x1a8]
test al, al
je 0x4898f9
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x1ac]
add esi, ecx
mov ecx, dword [ebp - 4]
test byte [ecx + 0x1a6], 1
je 0x489908
sub dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x1a6], 2
je 0x489917
sub dword [ebp - 0x28], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x1a6], 4
je 0x489926
add dword [ebp - 0x24], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x1a6], 8
je 0x489935
add dword [ebp - 0x20], esi
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 0x1a6]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + 0x1a9]
or ecx, dword [ebx*4 + 0x4a6bdc]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + 0x1e1]
or ecx, dword [ebx*4 + 0x4a6bec]
or ecx, 0x2000
push ecx
and edx, 0x7f
mov edx, dword [edx*4 + 0x4a6bbc]
and eax, 0x7f
or edx, dword [eax*4 + 0x4a6bcc]
push edx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004082d4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_IntersectClipRect
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x4899cc
mov ecx, dword [ebp - 0x28]
neg ecx
mov edx, dword [ebp - 0x2c]
neg edx
lea eax, [ebp - 0x2c]
call fcn.00407bd4
jmp 0x489a0f
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 8]
push eax
call sub.gdi32.dll_GetRgnBox
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
push 0
call sub.user32.dll_GetMenuItemID
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x2c]
call fcn.00407b5c
mov ecx, dword [ebp - 0x38]
neg ecx
mov edx, dword [ebp - 0x3c]
neg edx
lea eax, [ebp - 0x2c]
call fcn.00407bd4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b8]
call fcn.00468220
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00408344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489a52
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0048890c
push eax
call sub.user32.dll_GetSystemMenu
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
mov eax, dword [ebp - 4]
call fcn.0049046c
test al, al
je 0x489a81
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 2
je 0x489a81
call fcn.0048fab8
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004902ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret