Function at 0x4200b8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, 0x57a469
push dword [ebp + 8]
call fcn.00516145
mov esi, eax
test esi, esi
je 0x42045e
cmp dword [esi + 0x618], 0
jne 0x4200ed
push 0
call fcn.0041c2be
jmp 0x42045e
push 0x579058
lea ebx, [esi + 4]
push ebx
call fcn.004b258c
push 0x579058
call fcn.0041c834
test eax, eax
jne 0x420115
push 0
call fcn.0041c2be
jmp 0x42045e
push esi
push edi
mov esi, 0x587f13
mov edi, 0x57bdd0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x579058
push 0x587f13
call fcn.005394dc
add esp, 8
push 7
push 0
push 0
push 0xe81
call fcn.0041c35b
push eax
push 3
push dword [ebp + 8]
call fcn.004f7e78
test eax, eax
je 0x42045e
push 0x2e
push 0x588093
call fcn.00539518
add esp, 8
test eax, eax
jne 0x42019a
push 0x54c340
push 0x588093
call fcn.005394dc
add esp, 8
push esi
push edi
mov esi, edi
mov edi, 0x587f13
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x588093
push edi
call fcn.005394dc
add esp, 8
push esi
push edi
mov esi, 0x579058
mov edi, 0x588093
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
call fcn.00548d28
pop ecx
push eax
call fcn.0041c563
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x180
push 0
push 0x4901
push edi
call fcn.0053fb14
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [ebp - 0xc], 0
jge 0x420247
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x420381
cmp dword [ebp - 0x10], 0
je 0x420273
push dword [ebp - 0x10]
push ebx
push 0
push 0xe82
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x42028a
push ebx
push 0
push 0xe83
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0053f614
add esp, 0xc
cmp ebx, eax
je 0x4202ab
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x420381
cmp byte [esi + 0x64c], 2
jne 0x420331
cmp byte [esi + 0x64d], 1
jne 0x420331
push 0
push 0xe84
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 8
push 0x104
push edi
call fcn.005395b8
pop ecx
add eax, edi
push eax
push dword [esi]
call sub.USER32.dll_GetWindowTextA
push 0x40
push edi
call fcn.00539518
add esp, 8
test eax, eax
je 0x420331
push 0x54c346
push edi
call fcn.005394dc
add esp, 8
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0053f614
add esp, 0xc
cmp ebx, eax
je 0x420331
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x420381
mov eax, dword [esi + 0x618]
test eax, eax
je 0x420381
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
push dword [eax]
push 0x54c349
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0053f614
add esp, 0xc
cmp ebx, eax
je 0x42037a
mov dword [ebp - 8], 1
jmp 0x420381
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420341
cmp dword [ebp - 0x10], 0
je 0x4203a6
push dword [ebp - 0x10]
lea edx, [esi + 4]
push edx
push 0
push 0xe85
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x4203c0
lea ecx, [esi + 4]
push ecx
push 0
push 0xe86
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.005395b8
pop ecx
mov ebx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0053f614
add esp, 0xc
cmp ebx, eax
je 0x4203e1
mov dword [ebp - 8], 1
push dword [ebp - 0xc]
call fcn.0053ca08
pop ecx
xor eax, eax
mov dword [0x558950], eax
cmp dword [ebp - 8], 0
je 0x42042d
push 0x579058
push 0
push 0xe87
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x54d2a0]
push edi
push dword [0x55b3d8]
call fcn.004e0c3e
push 0
call fcn.0041c2be
jmp 0x42045e
push 0x579058
add esi, 4
push esi
push 0
push 0xe88
call fcn.0041c35b
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push dword [0x54d2a0]
push edi
push dword [0x55b3d8]
call fcn.004e0c3e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4