Function at 0x40a900
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor edi, edi
push 0x40ab80
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x10], edi
je 0x40aa0b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0040aca0
add esp, 8
test eax, eax
jne 0x40a95c
push 0x3e8
call ebx
add esi, 1
cmp esi, 0x10
jl 0x40a92f
mov ecx, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40aa0b
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x40b100
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call ebx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40aa0b
push edi
push edi
call ebx
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push edi
push edi
push edi
push edi
push 0x40000000
push edi
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
cmp esi, edi
jne 0x40aa15
push edi
call ebx
push eax
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SetPropW]
sub edi, ebx
push edi
push str.width
push esi
call ebp
push ebx
push str.height
push esi
call ebp
mov ecx, dword [esp + 0x7c]
push ecx
push str.bitmap
push esi
call ebp
xor ebp, ebp
push ebp
push 0x64
push ebp
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
push edi
mov dword [esp + 0x24], ebp
call fcn.0040b380
add esp, 0x10
test eax, eax
jne 0x40aa8a
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x14]
push 1
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebp
xor eax, eax
push ebp
push ebp
lea edx, [esp + 0x40]
push edx
mov edi, 1
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40ab47
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esp + 0x10]
push edx
call ebx
test eax, eax
je 0x40ab47
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ab47
push esi
call ebx
test eax, eax
je 0x40ab47
cmp edi, ebp
je 0x40ab19
mov ecx, dword [esp + 0x10]
push 1
xor edi, edi
push ecx
jmp 0x40ab29
cmp dword [esp + 0x38], 0x113
jne 0x40ab35
mov edx, dword [esp + 0x10]
push ebp
push edx
call fcn.0040b460
add esp, 8
test eax, eax
je 0x40ab47
push ebp
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40aad3
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
call dword [sym.imp.USER32.dll_UnregisterClassW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x68
ret