Function at 0x406320
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
mov dword [esp + 0x24], esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
mov dword [esp + 0x24], eax
je 0x4067bd
mov edi, dword [esp + 0x294]
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00405e80
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40638f
call fcn.004029a0
mov ebx, dword [eax + 0x344]
jmp 0x40639a
call fcn.004029a0
mov ebx, dword [eax + 0x34c]
mov ecx, dword [esp + 0x44]
test ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
je 0x4064d3
mov esi, dword [ebx]
test esi, esi
je 0x4063b9
mov eax, dword [esi + 8]
jmp 0x4063bb
xor eax, eax
cdq
idiv dword [ebx + 4]
test esi, esi
mov ebp, eax
je 0x4063ca
mov esi, dword [esi + 0xc]
jmp 0x4063cc
xor esi, esi
test ecx, ecx
mov dword [esp + 0x30], esi
jle 0x40641c
call fcn.004029a0
mov ecx, dword [eax + 0x33c]
test ecx, ecx
je 0x4063f8
mov eax, dword [ecx]
test eax, eax
je 0x4063ee
mov eax, dword [eax + 8]
jmp 0x4063f0
xor eax, eax
cdq
idiv dword [ecx + 4]
mov dword [esp + 0x28], eax
call fcn.004029a0
mov ecx, dword [eax + 0x340]
test ecx, ecx
je 0x40641c
mov eax, dword [ecx]
test eax, eax
je 0x406412
mov eax, dword [eax + 8]
jmp 0x406414
xor eax, eax
cdq
idiv dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x10], eax
add eax, ebp
mov dword [esp + 0x18], eax
push 0
add edx, esi
mov esi, dword [esp + 0x294]
push 4
lea eax, [esp + 0x18]
push 0
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x30], edx
call fcn.00401c40
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x2c]
sub eax, edx
push 0
push 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
push 2
sub eax, ebp
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00401c40
mov edx, dword [edi]
mov eax, dword [esp + 0x28]
add edx, ebp
lea ecx, [esp + 0x10]
add edx, eax
mov eax, dword [edi + 8]
sub eax, ebp
mov ebp, dword [esp + 0x2c]
sub eax, ebp
push ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4064ba
push 2
push eax
push 1
lea edx, [esp + 0x1c]
push 1
push edx
push esi
mov ecx, ebx
call fcn.00402090
mov ebp, dword [esp + 0x20]
push 0
push esi
mov ecx, ebp
call fcn.00405f10
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jmp 0x406578
mov eax, dword [esp + 0x48]
neg eax
neg ecx
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
call ebx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
add edx, eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40651d
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406533
push 0xe
call fcn.004029b0
lea edx, [esp + 0x14]
push eax
push edx
jmp 0x406540
push 0x10
call fcn.004029b0
push eax
lea eax, [esp + 0x18]
push eax
mov esi, dword [esp + 0x29c]
push esi
call fcn.004059a0
add esp, 0x10
push 0xf
call fcn.004029b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
sub ecx, eax
push 1
push ecx
push edx
push eax
push esi
call fcn.00405940
mov ebp, dword [esp + 0x3c]
add esp, 0x1c
test dword [esp + 0x24], 0x80000
je 0x40667c
push 0x32
call ebx
push eax
push 0x31
call ebx
push eax
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4065dc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 3
push 0
sub edx, ecx
push 0
push edx
mov edx, dword [esp + 0x20]
add ecx, 5
sub ebx, edx
push ebx
push eax
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [edx + eax + 3]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x40667c
mov edx, dword [ebp + 4]
push 0xffffffffffffffde
push edx
call dword [sym.imp.USER32.dll_GetClassLongA]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x406640
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x4066e8
lea ecx, [esp + 0x188]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
push 1
push edx
push 0
lea eax, [esp + 0x194]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40667c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 3
push 0
sub edx, ecx
push 0
push edx
mov edx, dword [esp + 0x20]
add ecx, 5
sub ebx, edx
push ebx
push eax
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [edx + eax + 3]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x88]
push pe_nt_image_headers32
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x88]
test al, al
je 0x4067bd
mov edx, dword [ebp + 4]
push 0
push 0
push 0x31
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test ebx, ebx
je 0x4067bd
lea eax, [esp + 0x4c]
push eax
push 0x3c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x406709
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esp + 0x24], eax
push eax
jmp 0x40670a
test byte [esp + 0x24], 0x80
jne 0x406638
push 0x7f05
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x20], eax
jmp 0x40663c
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov ebx, eax
mov eax, dword [edi]
mov edi, dword [edi + 0xc]
add eax, 0x32
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
sub edx, edi
mov edi, dword [esp + 0x30]
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
add eax, 0xffffffd8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea edi, [ecx + edi - 4]
add ecx, 3
add eax, 0x23
sub edx, 0x23
push 1
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 0x10]
mov edx, dword [0x438dbc]
test eax, eax
jne 0x406782
mov edx, dword [0x438dc4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [esp + 0x34]
push 0x21
push eax
lea ecx, [esp + 0x90]
push 0xffffffffffffffff
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test ebx, ebx
je 0x4067ae
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4067bd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 8