Function at 0x402278
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4283d0]
push ebx
and eax, 0x40000100
push esi
mov esi, dword [ebp + 8]
push edi
neg eax
sbb eax, eax
inc eax
cmp dword [esi], 0x65
mov dword [ebp - 8], eax
mov eax, dword [0x428294]
mov dword [ebp - 0x20], eax
jne 0x4022b6
push dword [ebp + 0xc]
push esi
call fcn.0040262b
pop ecx
pop ecx
jmp 0x402626
lea eax, [ebp - 0x134]
push 0x100
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [esi + 0x24], 0x28
lea edi, [esi + 0x1c]
mov dword [ebp + 8], eax
jge 0x4022e2
mov dword [ebp - 4], 0xf
xor ebx, ebx
jmp 0x4022e7
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], 4
je 0x4023d2
cmp dword [ebp + 0xc], ebx
je 0x40230c
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x18]
push dword [esi + 0x14]
call fcn.00402784
add esp, 0x14
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402626
cmp byte [ebp - 0x134], 0x40
push 1
pop eax
lea ecx, [ebp - 0x134]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
je 0x402363
cmp byte [ebp - 0x134], 0x5e
jne 0x4023ba
cmp byte [ebp - 0x133], 0x6c
lea eax, [ebp - 0x132]
push 2
mov dword [ebp + 0xc], eax
pop eax
jne 0x402354
mov dword [ebp + 0x10], ebx
jmp 0x402360
cmp byte [ebp - 0x133], 0x72
jne 0x402360
mov dword [ebp + 0x10], eax
sub dword [ebp + 8], eax
dec dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
inc dword [ebp + 0xc]
push 0x14
call ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push 1
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x10]
or al, 0x24
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextA]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x15
call ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 0x10]
or al, 0x24
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextA]
jmp 0x402626
cmp dword [esi + 4], 0x3ef
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
jne 0x4023f4
test byte [0x4283d0], 1
je 0x4023f0
and dword [esi + 0x10], 0xfffffffe
jmp 0x4023f4
or dword [esi + 0x10], 1
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push dword [ecx + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x10]
test al, 1
je 0x402426
mov ecx, dword [ebp + 0x10]
push 1
pop ebx
mov dword [ebp - 4], 0xa
jmp 0x40243a
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], 8
add ecx, 0xa
mov dword [ebp - 4], 5
test al, 0x10
je 0x402445
add ecx, 0xa
add dword [ebp + 0xc], 5
test al, 4
je 0x4024c8
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 8], 0
mov dword [ebp + 0xc], 1
mov ecx, dword [eax + 0x1c]
mov dword [ebp + 0x10], ecx
je 0x4024a9
cmp dword [esi + 4], 3
jne 0x402485
mov eax, dword [eax + 0x28]
push 0x421
push dword [esi + 0x14]
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 0xc], eax
jmp 0x4024a9
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetParent]
push 0x1c23
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x4024a9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 0x18]
push dword [esi + 0x14]
call fcn.00402784
add esp, 0x14
mov dword [ebp - 4], 2
jmp 0x4024e7
push 0xcc0020
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0xc]
push dword [edi + 0xc]
push dword [edi + 8]
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push 1
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffffff
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov edx, ebx
add ecx, ebx
add edx, dword [edi]
add eax, ebx
add ebx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], ebx
sub ebx, ecx
cmp ebx, 0x14
jge 0x402522
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
inc ecx
inc edx
inc eax
cmp dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
je 0x402552
lea eax, [ebp - 0x1c]
push 0x25
push eax
lea eax, [ebp - 0x134]
push dword [ebp + 8]
push eax
push dword [esi + 0x18]
call ebx
dec dword [ebp - 0x10]
dec dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
dec dword [ebp - 0x18]
test al, 4
jne 0x4025bb
test al, 0x10
je 0x4025b5
cmp dword [ebp - 8], 0
mov eax, pe_nt_image_headers32
mov dword [ebp + 0xc], eax
jne 0x4025e1
mov ecx, dword [edi]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffffd
lea eax, [ebp - 0x34]
push 0xfffffffffffffffd
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x4025c8
and dword [ebp + 0xc], 0
jmp 0x4025c2
mov dword [ebp + 0xc], 0x808080
cmp dword [ebp - 8], 0
jne 0x4025e1
xor eax, eax
cmp dword [ebp + 0xc], 0x808080
setne al
add eax, 0x11
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x1c]
push 0x25
push eax
lea eax, [ebp - 0x134]
push dword [ebp + 8]
push eax
push dword [esi + 0x18]
call ebx
push 0xf
push dword [ebp - 4]
push edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawEdge]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
leave
ret