Function at 0x420ee0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7d8
push ebx
push ebp
mov ebp, ecx
call fcn.005366c0
mov ebx, eax
test ebx, ebx
mov dword [esp + 8], ebx
je 0x4212c5
mov ecx, dword [ebx + 0xbb4]
call fcn.004dbea0
test eax, eax
je 0x420f3c
mov eax, dword [ebx + 0x6c8]
test eax, eax
je 0x420f3c
mov eax, dword [ebx + 0xbb4]
lea ecx, [ebx + 8]
push eax
lea edx, [esp + 0x3fc]
call fcn.004c4a60
lea ecx, [esp + 0x3f8]
call fcn.0041eec0
test eax, eax
jne 0x420f4c
xor ecx, ecx
call fcn.0041c8e0
pop ebp
pop ebx
add esp, 0x7d8
ret
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x598920]
mov byte [eax + 0x59edb0], cl
inc eax
test cl, cl
jne 0x420f50
lea eax, [esp + 0x3f8]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420f70
push esi
push edi
mov edi, 0x59edb0
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x420f81
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 7
rep movsb byte es:[edi], byte [esi]
push 0
xor edx, edx
mov ecx, 0x13ef
call fcn.0041c9e0
push eax
mov edx, 3
mov ecx, ebp
call fcn.00512110
test eax, eax
je 0x4212c3
mov ecx, ebx
call fcn.00536900
test eax, eax
je 0x4212bc
mov ecx, dword [ebx + 0xbb4]
call fcn.004dbea0
test eax, eax
je 0x4212bc
push 0x2e
push 0x59ef30
call fcn.00563730
add esp, 8
test eax, eax
jne 0x421019
mov edi, 0x59ef30
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421000
mov ecx, dword [str..log]
mov dl, byte [0x575704]
mov dword [edi], ecx
mov byte [edi + 4], dl
xor eax, eax
jmp 0x421020
mov cl, byte [eax + 0x59edb0]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x421020
mov eax, 0x59ef30
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421036
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x421044
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x59ef30]
mov byte [esp + eax + 0x400], cl
inc eax
test cl, cl
jne 0x421060
push 0x180
push 0x40
lea eax, [esp + 0x20]
push 0x4109
push eax
mov dword [esp + 0x24], 0
call fcn.0056d6d9
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, eax
add esp, 0x10
test ebp, ebp
jl 0x421277
push 0
call fcn.00563e36
add esp, 4
mov ecx, eax
call fcn.00520af0
push eax
mov eax, dword [esp + 0x14]
add eax, 8
push eax
xor edx, edx
mov ecx, 0xe7c
call fcn.0041c9e0
push eax
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x4210e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4210e0
sub eax, edx
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0056cc84
add esp, 0xc
cmp eax, esi
jne 0x42125e
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x700], 2
jne 0x4211b6
cmp dword [esi + 0x704], 1
jne 0x4211b6
xor edx, edx
mov ecx, 0xe7d
call fcn.0041c9e0
push eax
lea eax, [esp + 0x1c]
push eax
call ebx
lea eax, [esp + 0x20]
add esp, 8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421140
sub eax, edx
mov edx, dword [esi]
push 0x104
lea ecx, [esp + eax + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x18]
push 0x40
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x4211b6
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421174
mov cx, word [0x575404]
lea eax, [esp + 0x18]
mov word [edi], cx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421190
sub eax, edx
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0056cc84
add esp, 0xc
cmp eax, esi
jne 0x42125e
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x6c8]
test eax, eax
je 0x42120c
cmp eax, dword [esi + 0x6e0]
mov edi, dword [eax + 0x40]
je 0x421206
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push 0x575690
push ecx
call ebx
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4211e4
sub eax, edx
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0056cc84
add esp, 0xc
cmp eax, esi
jne 0x42125e
mov esi, dword [esp + 0x10]
test edi, edi
mov eax, edi
jne 0x4211c0
push 0
call fcn.00563e36
add esp, 4
mov ecx, eax
call fcn.00520af0
push eax
lea eax, [esi + 8]
push eax
xor edx, edx
mov ecx, 0xe7e
call fcn.0041c9e0
push eax
lea eax, [esp + 0x24]
push eax
call ebx
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421240
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.0056cc84
add esp, 0xc
cmp eax, esi
je 0x421266
mov dword [esp + 0x14], 1
push ebp
call fcn.00569e00
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4212ce
lea edx, [esp + 0x400]
push edx
xor edx, edx
mov ecx, 0xe7f
mov dword [0x589b90], 0
call fcn.0041c9e0
push eax
lea eax, [esp + 0x20]
push eax
call ebx
mov ecx, dword [0x594098]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xbb4]
add esp, 0xc
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
call fcn.004fc570
xor ecx, ecx
call fcn.0041c8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7d8
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x400]
push ecx
add eax, 8
push eax
xor edx, edx
mov ecx, 0xe80
mov dword [0x589b90], 0
call fcn.0041c9e0
push eax
lea edx, [esp + 0x24]
push edx
call ebx
mov eax, dword [0x594098]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push eax
mov eax, dword [ecx + 0xbb4]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
call fcn.004fc570
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7d8
ret