Function at 0x40de90
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x7199c4]
sub esp, 0x1e0
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
mov ebp, dword [esp + 0x1ec]
je 0x40deb6
cmp dword [0x7199c8], ebp
je 0x40e20b
push esi
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xd0], 2
mov esi, dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
jne 0x40df13
lea ecx, [esp + 0x154]
push ecx
push 0xffffffffffffffff
push 0
mov ebx, 1
call esi
test ebp, ebp
jne 0x40df3e
mov edx, dword [0x7199b0]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, eax
mov eax, dword [0x7199b0]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
push edi
push edi
mov dword [0x7199c8], ebp
call esi
test eax, eax
je 0x40dfa6
cmp dword [esp + 0x8c], ebp
jne 0x40df97
mov edx, dword [esp + 0x90]
cmp edx, dword [0x461ff8]
jne 0x40df97
mov eax, dword [esp + 0x94]
cmp eax, dword [0x461ffc]
jne 0x40df97
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x1cc]
xor ecx, ecx
cmp edx, eax
setne cl
test ebx, ecx
je 0x40e01a
lea eax, [esp + 0x24]
push eax
inc edi
push edi
push 0
call esi
test eax, eax
jne 0x40df53
test ebx, ebx
je 0x40e200
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
push edi
push edi
call esi
test eax, eax
je 0x40e200
cmp dword [esp + 0x8c], ebp
jne 0x40dff7
mov edx, dword [esp + 0x90]
cmp edx, dword [0x461ff8]
jne 0x40dff7
mov eax, dword [esp + 0x94]
cmp eax, dword [0x461ffc]
jne 0x40dff7
mov ecx, dword [esp + 0x9c]
cmp ecx, dword [0x46200c]
jae 0x40e01a
lea edx, [esp + 0x24]
push edx
inc edi
push edi
push 0
call esi
test eax, eax
jne 0x40dfc1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [0x7199c4], eax
pop ebx
add esp, 0x1e0
ret
mov ecx, dword [0x7199b0]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor edi, edi
cmp eax, edi
mov dword [0x462014], eax
mov dword [0x462018], edx
jl 0x40e05e
push edi
call esi
cmp dword [0x462014], eax
jle 0x40e077
push edi
call esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, edx
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [0x462014], eax
cmp dword [0x462018], edi
jl 0x40e08b
push 1
call esi
cmp dword [0x462018], eax
jle 0x40e0a3
push 1
call esi
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [0x462018], eax
mov eax, dword [0x7199b0]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x10018
push 0xffffffffffffffec
push eax
call esi
mov ecx, dword [0x7199b0]
push DirectSoundCreate
push 0xfffffffffffffff0
push ecx
call esi
mov edx, dword [0x7199b0]
push edi
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [0x48e368]
cmp eax, edi
je 0x40e14e
cmp dword [0x48e36c], edi
jle 0x40e137
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPlacement]
xor esi, esi
mov eax, dword [esi + eax]
push eax
call ebx
test eax, eax
je 0x40e123
mov ecx, dword [0x48e368]
mov edx, dword [esi + ecx]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e123
mov eax, dword [0x48e368]
mov edx, dword [esi + eax]
lea ecx, [esi + eax + 4]
push ecx
push edx
call ebp
mov eax, dword [0x48e36c]
inc edi
add esi, 0x30
cmp edi, eax
mov eax, dword [0x48e368]
jl 0x40e0f5
xor edi, edi
cmp eax, edi
je 0x40e148
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x48e368], edi
mov dword [0x48e36c], edi
push edi
push 0x40dd90
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x40e174
mov eax, dword [0x48e368]
cmp eax, edi
je 0x40e174
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x48e368], edi
push 4
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov ecx, dword [0x461ffc]
mov edx, dword [0x461ff8]
mov eax, dword [0x7199b0]
push 0x40
push ecx
push edx
push edi
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x462010], edi
jne 0x40e1b0
push edi
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x484614], edi
je 0x40e200
mov eax, dword [0x484618]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
cmp eax, 0x887601c2
jne 0x40e1d5
mov eax, dword [0x484618]
mov edx, dword [eax]
push eax
call dword [edx + 0x6c]
mov esi, 0x4fcf60
mov eax, dword [esi]
cmp eax, edi
je 0x40e1f5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
cmp eax, 0x887601c2
jne 0x40e1f5
mov eax, dword [esi]
mov edx, dword [eax]
push eax
call dword [edx + 0x6c]
add esi, 0x28
cmp esi, 0x4ff760
jl 0x40e1da
mov eax, dword [esp + 0x10]
pop edi
mov dword [0x7199c4], eax
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret