Function at 0x422000
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5e6044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [esi + 0x18]
call fcn.0042574c
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x224], edi
mov edx, dword [edi]
call dword [edx + 0x1c]
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebx + 0x80]
push ecx
mov ecx, edi
call fcn.00425c7d
push 5
push 5
push dword [ebp - 0x214]
mov esi, eax
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_RoundRect]
mov eax, dword [ebp - 0x228]
test al, 0x10
je 0x4220bc
mov dword [ebx + 0xe4], 1
mov dword [ebx + 0xe0], 1
jmp 0x4220d0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe0], 0
test al, 0x21
je 0x4220de
mov dword [ebx + 0xe4], 1
push esi
mov ecx, edi
call fcn.00425c7d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2e
call esi
push 0x2d
mov edi, eax
call esi
neg edi
neg eax
push edi
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [ebx + 0xd8], 0
mov esi, dword [ebp - 0x224]
mov ecx, esi
je 0x42213c
lea eax, [ebx + 0xc8]
push eax
call fcn.00425c7d
mov edx, dword [ebx]
mov edi, eax
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
push esi
call dword [edx + 0x16c]
jmp 0x42215c
lea eax, [ebx + 0xd0]
push eax
call fcn.00425c7d
mov edi, eax
lea ecx, [ebp - 0x220]
mov eax, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [eax + 0x16c]
cmp dword [ebx + 0xd8], 0
jne 0x42216e
cmp dword [ebx + 0xe0], 0
je 0x422180
mov eax, dword [ebx]
lea ecx, [ebp - 0x220]
push ecx
push esi
mov ecx, ebx
call dword [eax + 0x170]
push edi
mov ecx, esi
call fcn.00425c7d
push 0
push 0
push 0x31
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0042575e
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0x28]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x230]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x218]
add eax, dword [ebp - 0x220]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x230]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x21c]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x22c]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
test byte [ebp - 0x228], 1
je 0x42221b
inc edi
inc ebx
push 1
mov ecx, esi
call fcn.00425d69
test byte [ebp - 0x228], 4
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x210]
je 0x422243
push 0x22
jmp 0x422245
push 2
push ecx
mov ecx, dword [ebp - 0x230]
push ecx
push ebx
push edi
push 0
push eax
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DrawStateW]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x224]
call dword [eax + 0x28]
push dword [ebp - 0x234]
mov ecx, esi
call fcn.00425d69
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x238]
call dword [eax + 0x20]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054d0e6
mov esp, ebp
pop ebp
ret 4