Function at 0x40a8e0
Capabilities:
Enumerate gui resources
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor edi, edi
push 0x40ac00
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40aa6b
mov ebp, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
push edi
push eax
call ebp
mov esi, eax
cmp esi, edi
je 0x40a96d
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0xa1d048cd
push 0x685535a4
push 0x401
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call ebx
mov ecx, dword [esp + 0x14]
push 0
push str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
push 0
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40a96b
push 0xa1d048cd
push 0x685535a4
push 0x401
push esi
call edi
push esi
call ebx
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
call fcn.0040b9f0
add esp, 8
test eax, eax
jne 0x40a9ac
push 0x3e8
call ebx
add esi, 1
cmp esi, 0x10
jl 0x40a975
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x2c]
xor eax, eax
push ecx
push 0x18
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40aa6b
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x40adf0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
call ebx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], str.9D1BF615_4CFD_43ef_AB19_69FD6598D66B
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40aa6b
push edi
push edi
call ebx
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
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 0x40aa75
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, 0x78
ret
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
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 edx, dword [esp + 0x8c]
push edx
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 ecx, dword [esp + 0x8c]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push edi
mov dword [esp + 0x28], ebp
call fcn.0040b0a0
add esp, 0x10
test eax, eax
jne 0x40aaf0
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, 0x78
ret
mov edx, dword [esp + 0x18]
push 1
push edx
push esi
call dword [sym.imp.USER32.dll_SetWindowRgn]
xor eax, eax
push ebp
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
push ebp
lea eax, [esp + 0x50]
push eax
mov ebx, 1
mov dword [esp + 0x54], ebp
xor edi, edi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40abcc
lea esp, [esp]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40abcc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40abcc
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40abcc
cmp ebx, ebp
je 0x40ab8e
mov edx, dword [esp + 0x14]
push 1
xor ebx, ebx
push edx
jmp 0x40ab9e
cmp dword [esp + 0x48], 0x113
jne 0x40abb6
mov eax, dword [esp + 0x14]
push ebp
push eax
call fcn.0040b180
add esp, 8
test eax, eax
jne 0x40abb4
add edi, 1
cmp edi, 8
jge 0x40abcc
jmp 0x40abb6
xor edi, edi
push ebp
push ebp
push ebp
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40ab40
mov edx, dword [esp + 0x18]
push edx
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, 0x78
ret