Function at 0x421de0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7d8
push ebx
push ebp
mov ebp, ecx
call fcn.00542c90
mov ebx, eax
test ebx, ebx
mov dword [esp + 8], ebx
je 0x4221e4
mov ecx, dword [ebx + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x421e3c
mov eax, dword [ebx + 0x6cc]
test eax, eax
je 0x421e3c
mov eax, dword [ebx + 0xbbc]
lea ecx, [ebx + 8]
push eax
lea edx, [esp + 0x3fc]
call fcn.004ca880
lea ecx, [esp + 0x3f8]
call fcn.0041fca0
test eax, eax
jne 0x421e4c
xor ecx, ecx
call fcn.0041d520
pop ebp
pop ebx
add esp, 0x7d8
ret
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x5a9e78]
mov byte [eax + 0x5b0960], cl
inc eax
test cl, cl
jne 0x421e50
lea eax, [esp + 0x3f8]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421e70
push esi
push edi
mov edi, 0x5b0960
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x421e81
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.0041d620
push eax
mov edx, 3
mov ecx, ebp
call fcn.00519df0
test eax, eax
je 0x4221e2
mov ecx, ebx
call fcn.00542ed0
test eax, eax
je 0x4221db
mov ecx, dword [ebx + 0xbbc]
call fcn.004e2760
test eax, eax
je 0x4221db
push 0x2e
push 0x5b0ae0
call fcn.00570260
add esp, 8
test eax, eax
jne 0x421f19
mov edi, 0x5b0ae0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421f00
mov ecx, dword [str..log]
mov dl, byte [0x5847b8]
mov dword [edi], ecx
mov byte [edi + 4], dl
xor eax, eax
jmp 0x421f20
mov cl, byte [eax + 0x5b0960]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x421f20
mov eax, 0x5b0ae0
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421f36
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x421f44
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 + 0x5b0ae0]
mov byte [esp + eax + 0x400], cl
inc eax
test cl, cl
jne 0x421f60
push 0x180
push 0x40
lea eax, [esp + 0x20]
push 0x4109
push eax
mov dword [esp + 0x24], 0
call fcn.0057f36a
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jl 0x422197
mov dl, byte [0x583b72]
mov cx, word [0x583b70]
lea eax, [esp + 0x18]
mov byte [esp + 0x1a], dl
mov word [esp + 0x18], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421fc0
sub eax, edx
push 0
mov esi, eax
call fcn.00570bc6
add esp, 4
mov ecx, eax
call fcn.0052d0c0
push eax
mov eax, dword [esp + 0x14]
add eax, 8
push eax
xor edx, edx
mov ecx, 0xe7c
call fcn.0041d620
push eax
lea eax, [esp + esi + 0x24]
push eax
call ebp
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422003
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.0057ad94
add esp, 0xc
cmp eax, esi
jne 0x42217e
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x708], 2
jne 0x4220d6
cmp dword [esi + 0x70c], 1
jne 0x4220d6
xor edx, edx
mov ecx, 0xe7d
call fcn.0041d620
push eax
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x20]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422061
mov ecx, dword [esi]
sub eax, edx
push 0x104
lea eax, [esp + eax + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x18]
push 0x40
push edx
call fcn.00570260
add esp, 8
test eax, eax
je 0x4220d6
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422095
mov ax, word [0x58445c]
mov word [edi], ax
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4220b0
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.0057ad94
add esp, 0xc
cmp eax, esi
jne 0x42217e
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x6cc]
test eax, eax
je 0x42212c
cmp eax, dword [esi + 0x6e4]
mov edi, dword [eax + 0x40]
je 0x422126
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push 0x584748
push eax
call ebp
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422104
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.0057ad94
add esp, 0xc
cmp eax, esi
jne 0x42217e
mov esi, dword [esp + 0x10]
test edi, edi
mov eax, edi
jne 0x4220e0
push 0
call fcn.00570bc6
add esp, 4
mov ecx, eax
call fcn.0052d0c0
push eax
lea eax, [esi + 8]
push eax
xor edx, edx
mov ecx, 0xe7e
call fcn.0041d620
push eax
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422160
sub eax, edx
mov esi, eax
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0057ad94
add esp, 0xc
cmp eax, esi
je 0x422186
mov dword [esp + 0x14], 1
push ebx
call fcn.00577b9f
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4221ed
lea ecx, [esp + 0x400]
push ecx
xor edx, edx
mov ecx, 0xe7f
mov dword [0x59bcec], 0
call fcn.0041d620
push eax
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [0x5a5508]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
mov eax, dword [ecx + 0xbbc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
call fcn.00503ad0
xor ecx, ecx
call fcn.0041d520
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 [0x59bcec], 0
call fcn.0041d620
push eax
lea edx, [esp + 0x24]
push edx
call ebp
mov eax, dword [0x5a5508]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push eax
mov eax, dword [ecx + 0xbbc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
call fcn.00503ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7d8
ret