Function at 0x405f90
Capabilities:
Access peb ldr_data
Get graphical window text
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2a8
mov ebx, dword [ecx]
cmp dword [0x4117d0], ebx
je 0x405fd9
lea esi, [ebp - 0x218]
mov dword [esp + 8], 0x100
mov edi, dword [0x41162c]
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
test eax, eax
jne 0x405ff0
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [sym.imp.user32.dll_IsWindowVisible]
mov dword [esp], ebx
mov dword [ebp - 0x25c], eax
call eax
sub esp, 4
test eax, eax
je 0x405fd9
mov eax, dword [sym.imp.user32.dll_GetParent]
mov dword [esp], ebx
mov dword [ebp - 0x260], eax
call eax
sub esp, 4
test eax, eax
jne 0x405fd9
mov eax, dword [sym.imp.user32.dll_GetWindow]
mov dword [esp + 4], 4
mov dword [esp], ebx
mov dword [ebp - 0x27c], eax
call eax
sub esp, 8
test eax, eax
jne 0x405fd9
mov eax, dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [esp + 4], 0xffffffec
mov dword [esp], ebx
mov dword [ebp - 0x28c], eax
call eax
sub esp, 8
and eax, 0x80
mov dword [ebp - 0x284], eax
jne 0x405fd9
lea eax, [ebp - 0x258]
mov dword [esp + 0x14], 0x3e8
mov dword [esp + 0x18], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [sym.imp.user32.dll_SendMessageTimeoutW]
mov dword [ebp - 0x258], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x7f
mov dword [esp], ebx
mov dword [ebp - 0x264], eax
call eax
mov ecx, dword [ebp - 0x258]
sub esp, 0x1c
test ecx, ecx
je 0x4066fd
mov dword [esp], ebx
lea edi, [ebp - 0x254]
call dword [sym.imp.user32.dll_IsHungAppWindow]
mov ecx, 0xf
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x258]
sub esp, 4
mov dword [ebp - 0x280], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x4117c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1002
mov dword [esp], eax
mov dword [ebp - 0x268], edi
call edi
mov dword [ebp - 0x270], eax
mov eax, dword [0x4117c0]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1002
mov dword [esp], eax
call edi
mov dword [ebp - 0x274], eax
mov eax, dword [0x4117c0]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1004
mov dword [esp], eax
call edi
mov dword [ebp - 0x278], eax
sub esp, 0x10
test eax, eax
jle 0x4065c7
xor edx, edx
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], eax
mov ebx, edx
jmp 0x4061b5
inc ebx
cmp dword [ebp - 0x278], ebx
je 0x4065c5
mov edi, dword [ebp - 0x264]
xor eax, eax
mov ecx, 0xd
mov dword [ebp - 0x254], 6
mov dword [ebp - 0x250], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 4], 0x104b
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
call eax
mov edi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x26c]
sub esp, 0x10
cmp eax, dword [edi]
jne 0x4061a8
mov ebx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x280]
lea eax, [edi + 4]
cmp edx, dword [edi + 0x204]
je 0x406857
mov eax, dword [ebp - 0x280]
mov dword [edi + 0x204], eax
mov eax, dword [ebp - 0x288]
mov dword [edi + 0x208], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [edi + eax + 4], dx
add eax, 2
test dx, dx
jne 0x406250
mov eax, dword [ebp - 0x250]
mov edi, dword [ebp - 0x280]
mov esi, dword [sym.imp.comctl32.dll_ImageList_ReplaceIcon]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x270]
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x250]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [0x4117c0]
mov edi, dword [ebp - 0x268]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1004
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1015
mov dword [esp], eax
call edi
mov eax, dword [0x4117c0]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_InvalidateRect]
sub esp, 0xc
mov eax, dword [0x4117c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0x1004
call eax
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x26c], 0
sub esp, 0x10
dec eax
mov dword [ebp - 0x264], edx
mov esi, eax
js 0x4065bb
mov dword [ebp - 0x278], ebx
mov ebx, dword [ebp - 0x268]
jmp 0x406406
mov eax, dword [ebp - 0x250]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x270]
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_ImageList_Remove]
mov eax, dword [ebp - 0x250]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_ImageList_Remove]
mov eax, dword [ebp - 0x250]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [0x4117c0]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x1008
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x26c], 1
sub esp, 0xc
sub esi, 1
jb 0x406510
mov edi, dword [ebp - 0x264]
xor eax, eax
mov ecx, 0xd
mov dword [ebp - 0x254], 6
mov dword [ebp - 0x250], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 4], 0x104b
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0x234]
sub esp, 0x10
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsWindow]
sub esp, 4
test eax, eax
je 0x406370
cmp word [edi + 4], 0
lea edx, [edi + 4]
je 0x406370
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x406480
sub eax, edx
test eax, eax
jle 0x406370
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x25c]
call eax
sub esp, 4
test eax, eax
je 0x406370
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x260]
call eax
sub esp, 4
test eax, eax
jne 0x406370
mov dword [esp + 4], 4
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x27c]
call eax
push ecx
push ecx
test eax, eax
jne 0x406370
mov eax, dword [ebp - 0x278]
mov dword [esp + 4], 0xffffffec
mov dword [esp], eax
mov eax, dword [ebp - 0x28c]
call eax
push edx
push edx
test al, 0x80
jne 0x406370
jmp 0x4063fd
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4065bb
mov eax, dword [0x4117c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0x1004
call eax
sub esp, 0x10
test eax, eax
jle 0x4065bb
mov dword [ebp - 0x25c], eax
mov ebx, dword [ebp - 0x284]
xor esi, esi
lea esi, [esi]
nop
mov edi, dword [ebp - 0x264]
mov eax, esi
mov ecx, 0xd
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], 2
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x238], ebx
inc ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0x104c
call eax
sub esp, 0x10
cmp dword [ebp - 0x25c], ebx
jne 0x406560
call sym._ApplicationPageUpdate
jmp 0x405fd9
mov ebx, eax
mov dword [esp + 8], 0x20c
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax], ebx
mov ecx, eax
sub esp, 0xc
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x280]
mov dword [ecx + 0x204], eax
mov eax, dword [ebp - 0x288]
mov dword [ecx + 0x208], eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x406618
lea edx, [ebp - 0x250]
xor eax, eax
mov ecx, 0xe
mov esi, dword [sym.imp.comctl32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x254], 7
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x280]
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x274]
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call esi
mov edi, dword [ebp - 0x268]
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x238], eax
mov eax, dword [0x4117c0]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1004
mov dword [esp], eax
call edi
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x264]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x254]
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 4], 0x104d
mov dword [esp], eax
call edi
sub esp, 0x10
jmp 0x406312
test edi, edi
je 0x40680c
mov edx, dword [sym.imp.user32.dll_GetClassLongW]
mov dword [esp + 4], 0xfffffff2
mov dword [esp], ebx
mov dword [ebp - 0x268], edx
call edx
mov edx, dword [ebp - 0x268]
sub esp, 8
test eax, eax
mov dword [ebp - 0x258], eax
je 0x406885
mov eax, dword [ebp - 0x258]
test eax, eax
jne 0x4060c9
lea eax, [ebp - 0x258]
mov dword [esp + 0x14], 0x3e8
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x37
mov dword [esp], ebx
call eax
sub esp, 0x1c
cmp dword [ebp - 0x258], 0
jne 0x4060c9
xor eax, eax
test edi, edi
lea edx, [ebp - 0x258]
mov dword [esp + 0x14], 0x3e8
sete al
mov dword [esp + 0x18], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x7f
mov dword [esp], ebx
call eax
mov ecx, dword [ebp - 0x258]
sub esp, 0x1c
test ecx, ecx
jne 0x4060c9
cmp edi, 1
mov eax, 0x89
adc eax, 0
mov dword [esp + 4], eax
mov eax, dword [0x4117cc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [ebp - 0x258], eax
sub esp, 8
jmp 0x4060c9
mov edx, dword [sym.imp.user32.dll_GetClassLongW]
mov dword [esp + 4], 0xffffffde
mov dword [esp], ebx
mov dword [ebp - 0x268], edx
call edx
mov edx, dword [ebp - 0x268]
sub esp, 8
test eax, eax
mov dword [ebp - 0x258], eax
jne 0x406735
mov eax, 0xfffffff2
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov dword [ebp - 0x258], eax
push edx
push edx
jmp 0x406735
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x40622c
mov eax, dword [ebp - 0x288]
cmp eax, dword [edi + 0x208]
jne 0x40622c
jmp 0x406312
mov eax, 0xffffffde
jmp 0x406841