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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov ebx, dword [ebp + 8]
cmp dword [0x4117d0], ebx
je 0x405f0f
lea esi, [ebp - 0x20c]
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 0x405f20
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [sym.imp.user32.dll_IsWindowVisible]
mov dword [esp], ebx
mov dword [ebp - 0x250], eax
call eax
sub esp, 4
test eax, eax
je 0x405f0f
mov eax, dword [sym.imp.user32.dll_GetParent]
mov dword [esp], ebx
mov dword [ebp - 0x254], eax
call eax
sub esp, 4
test eax, eax
jne 0x405f0f
mov eax, dword [sym.imp.user32.dll_GetWindow]
mov dword [esp + 4], 4
mov dword [esp], ebx
mov dword [ebp - 0x26c], eax
call eax
sub esp, 8
test eax, eax
jne 0x405f0f
mov eax, dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [esp + 4], 0xffffffec
mov dword [esp], ebx
mov dword [ebp - 0x27c], eax
call eax
sub esp, 8
and eax, 0x80
mov dword [ebp - 0x274], eax
jne 0x405f0f
lea eax, [ebp - 0x24c]
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 - 0x24c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x7f
mov dword [esp], ebx
mov dword [ebp - 0x258], eax
call eax
mov ecx, dword [ebp - 0x24c]
sub esp, 0x1c
test ecx, ecx
je 0x40661d
mov dword [esp], ebx
lea edi, [ebp - 0x248]
call dword [sym.imp.user32.dll_IsHungAppWindow]
mov ecx, 0xf
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x24c]
sub esp, 4
mov dword [ebp - 0x270], 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 - 0x25c], edi
call edi
mov dword [ebp - 0x264], 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 - 0x268], 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 - 0x260], eax
sub esp, 0x10
test eax, eax
jle 0x4064e8
xor edx, edx
lea eax, [ebp - 0x240]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x258], eax
mov ebx, edx
jmp 0x4060dd
inc ebx
cmp dword [ebp - 0x260], ebx
je 0x4064e5
mov edi, dword [ebp - 0x258]
xor eax, eax
mov ecx, 0xd
mov dword [ebp - 0x248], 6
mov dword [ebp - 0x244], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x248]
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 - 0x25c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 0x10
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x4060d0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x270]
lea eax, [edi + 4]
cmp ecx, dword [edi + 0x204]
je 0x406777
mov eax, dword [ebp - 0x270]
mov dword [edi + 0x204], eax
mov eax, dword [ebp - 0x278]
mov dword [edi + 0x208], eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [edi + eax + 4], dx
add eax, 2
test dx, dx
jne 0x406170
mov eax, dword [ebp - 0x244]
mov edi, dword [ebp - 0x270]
mov esi, dword [sym.imp.comctl32.dll_ImageList_ReplaceIcon]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x244]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [0x4117c0]
mov edi, dword [ebp - 0x25c]
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 - 0x25c]
mov dword [esp + 4], 0x1004
call eax
lea edx, [ebp - 0x240]
mov dword [ebp - 0x260], 0
sub esp, 0x10
dec eax
mov dword [ebp - 0x258], edx
mov esi, eax
js 0x4064db
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x25c]
jmp 0x406326
mov eax, dword [ebp - 0x244]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_ImageList_Remove]
mov eax, dword [ebp - 0x244]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_ImageList_Remove]
mov eax, dword [ebp - 0x244]
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 - 0x260], 1
sub esp, 0xc
sub esi, 1
jb 0x406430
mov edi, dword [ebp - 0x258]
xor eax, eax
mov ecx, 0xd
mov dword [ebp - 0x248], 6
mov dword [ebp - 0x244], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x248]
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 - 0x228]
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 0x406290
cmp word [edi + 4], 0
lea edx, [edi + 4]
je 0x406290
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4063a0
sub eax, edx
test eax, eax
jle 0x406290
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
call eax
sub esp, 4
test eax, eax
je 0x406290
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x254]
call eax
sub esp, 4
test eax, eax
jne 0x406290
mov dword [esp + 4], 4
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x26c]
call eax
push ecx
push ecx
test eax, eax
jne 0x406290
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffec
mov dword [esp], eax
mov eax, dword [ebp - 0x27c]
call eax
push edx
push edx
test al, 0x80
jne 0x406290
jmp 0x40631d
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4064db
mov eax, dword [0x4117c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 4], 0x1004
call eax
sub esp, 0x10
test eax, eax
jle 0x4064db
mov dword [ebp - 0x250], eax
mov ebx, dword [ebp - 0x274]
xor esi, esi
lea esi, [esi]
nop
mov edi, dword [ebp - 0x258]
mov eax, esi
mov ecx, 0xd
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], 2
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x22c], 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 - 0x25c]
mov dword [esp + 4], 0x104c
call eax
sub esp, 0x10
cmp dword [ebp - 0x250], ebx
jne 0x406480
call sym._ApplicationPageUpdate
jmp 0x405f0f
mov ebx, dword [ebp + 8]
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 - 0x258], eax
mov eax, dword [ebp - 0x270]
mov dword [ecx + 0x204], eax
mov eax, dword [ebp - 0x278]
mov dword [ecx + 0x208], eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x406538
lea edx, [ebp - 0x244]
xor eax, eax
mov ecx, 0xe
mov esi, dword [sym.imp.comctl32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x248], 7
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x270]
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x268]
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call esi
mov edi, dword [ebp - 0x25c]
mov dword [ebp - 0x234], 0xffffffff
mov dword [ebp - 0x22c], 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 - 0x244], eax
mov eax, dword [ebp - 0x258]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x248]
mov dword [esp + 0xc], eax
mov eax, dword [0x4117c0]
mov dword [esp + 4], 0x104d
mov dword [esp], eax
call edi
sub esp, 0x10
jmp 0x406232
test edi, edi
je 0x40672c
mov edx, dword [sym.imp.user32.dll_GetClassLongW]
mov dword [esp + 4], 0xfffffff2
mov dword [esp], ebx
mov dword [ebp - 0x25c], edx
call edx
mov edx, dword [ebp - 0x25c]
sub esp, 8
test eax, eax
mov dword [ebp - 0x24c], eax
je 0x4067a5
mov eax, dword [ebp - 0x24c]
test eax, eax
jne 0x405ff9
lea eax, [ebp - 0x24c]
mov dword [esp + 0x14], 0x3e8
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x258]
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 - 0x24c], 0
jne 0x405ff9
xor eax, eax
test edi, edi
lea edx, [ebp - 0x24c]
mov dword [esp + 0x14], 0x3e8
sete al
mov dword [esp + 0x18], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x258]
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 - 0x24c]
sub esp, 0x1c
test ecx, ecx
jne 0x405ff9
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 - 0x24c], eax
sub esp, 8
jmp 0x405ff9
mov edx, dword [sym.imp.user32.dll_GetClassLongW]
mov dword [esp + 4], 0xffffffde
mov dword [esp], ebx
mov dword [ebp - 0x25c], edx
call edx
mov edx, dword [ebp - 0x25c]
sub esp, 8
test eax, eax
mov dword [ebp - 0x24c], eax
jne 0x406655
mov eax, 0xfffffff2
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov dword [ebp - 0x24c], eax
push edx
push edx
jmp 0x406655
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x40614e
mov eax, dword [ebp - 0x278]
cmp eax, dword [edi + 0x208]
jne 0x40614e
jmp 0x406232
mov eax, 0xffffffde
jmp 0x406761