Function at 0x4020d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 3
jne 0x402114
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 4]
push edx
mov ecx, 0x45ddb4
call fcn.0040f640
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 1
je 0x40212a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 3
jne 0x4025f0
push 0x425be4
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 4]
push eax
mov ecx, 0x45ddb4
call fcn.0040f490
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x402159
xor eax, eax
jmp 0x4025f2
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
and edx, 4
je 0x40217a
mov dword [ebp - 0x210], 4
jmp 0x4021ca
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
and ecx, 1
je 0x402191
mov dword [ebp - 0x210], 3
jmp 0x4021ca
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
and eax, 0x40
je 0x4021a8
mov dword [ebp - 0x210], 2
jmp 0x4021ca
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0x258], edx
cmp dword [ebp - 0x258], 0
je 0x4021ca
mov dword [ebp - 0x210], 5
push 0
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x210]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov ecx, 0x45ddb4
call fcn.0040f510
mov edx, dword [ebp + 8]
add edx, 0x14
mov eax, dword [edx]
mov dword [ebp - 0x228], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x224], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x220], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x210]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov ecx, 0x45ddb4
call fcn.0040f5c0
push 0x100
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
and eax, 4
je 0x40227f
mov dword [ebp - 0x20c], 0x20
jmp 0x402289
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
and edx, 1
je 0x4022ad
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x25c]
xor edx, edx
cmp dword [ecx + 0x38], 0
setne dl
test edx, edx
je 0x4023cb
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x18], 0
je 0x402314
movzx ecx, word [ebp - 0x208]
test ecx, ecx
jne 0x4022e7
mov dword [ebp - 0x260], 0xffffffff
jmp 0x4022fc
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x228]
add eax, dword [edx + 0x2c]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], 0xffffffff
jmp 0x40232c
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x3c]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.00401a40
mov ecx, dword [ebp - 0x230]
add ecx, dword [ebp - 0x214]
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x22c]
add edx, dword [ebp - 0x214]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x38], 0
je 0x4023cb
mov ecx, dword [ebp - 0x20c]
or ecx, 3
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x38]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_DrawStateW]
movzx eax, word [ebp - 0x208]
test eax, eax
je 0x4025b9
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.004129b4
add esp, 4
push eax
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x18], 0
je 0x4024b2
mov ecx, dword [ebp - 0x25c]
xor edx, edx
cmp dword [ecx + 0x38], 0
setne dl
test edx, edx
je 0x40249c
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x25c]
add edx, dword [ecx + 0x30]
mov ecx, dword [ebp - 0x25c]
add edx, dword [ecx + 0x2c]
sub eax, edx
sub eax, dword [ebp - 0x250]
test eax, eax
jle 0x40247e
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x25c]
add eax, dword [ecx + 0x30]
mov edx, dword [ebp - 0x25c]
add eax, dword [edx + 0x2c]
mov dword [ebp - 0x248], eax
jmp 0x40249a
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x2c]
lea ecx, [ecx + eax + 2]
mov dword [ebp - 0x248], ecx
jmp 0x4024a6
mov dword [ebp - 0x248], 0xffffffff
mov dword [ebp - 0x244], 0xffffffff
jmp 0x4024ca
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 0x28]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], ecx
xor edx, edx
cmp dword [ebp - 0x244], 0xffffffff
setne dl
sub edx, 1
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x25c]
call fcn.00401a40
mov eax, dword [ebp - 0x248]
add eax, dword [ebp - 0x214]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x214]
add ecx, dword [ebp - 0x254]
add ecx, dword [ebp - 0x244]
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
cmp dword [eax + 0x38], 0
setne cl
test ecx, ecx
je 0x402557
mov edx, dword [ebp - 0x240]
add edx, 6
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x234], edx
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x208]
push ecx
call fcn.004015b0
add esp, 4
push eax
mov edx, dword [ebp - 0x210]
push edx
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x218]
push edx
mov ecx, 0x45ddb4
call fcn.0040f560
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
and ecx, 0x10
je 0x4025d8
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov edx, dword [ebp - 0x218]
push edx
mov ecx, 0x45ddb4
call fcn.0040f4d0
mov eax, 4
jmp 0x4025f2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
ret 4