Function at 0x4c2c40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov eax, dword [0x547570]
push ebx
mov dword [esp + 4], eax
push ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
mov dword [esp + 0x18], ecx
push esi
cmp edx, 1
push edi
mov ecx, 0x1001
jg 0x4c2c69
cmp dword [eax - 4], ecx
jge 0x4c2cae
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4c2c72
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x4c2c84
xor esi, esi
jmp 0x4c2cb0
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov esi, eax
mov edx, dword [esp + 0x20]
push 0x3ea
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1000
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call esi
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov edx, 0x54782c
test edx, edx
mov word [ecx + eax*2], 0
jne 0x4c2d04
xor eax, eax
jmp 0x4c2d0b
push 0x54782c
call esi
push 0x54782c
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4c2d32
mov edx, dword [eax - 4]
test edx, edx
jge 0x4c2d7d
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4c2d3b
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x4c2d53
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
jmp 0x4c2d81
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x20]
mov esi, dword [eax - 8]
xor ebx, ebx
mov dword [esp + 0x58], esi
mov eax, dword [edx + 0x5c]
push ebx
push ebx
push eax
push 0x547afc
call fcn.0048ea80
mov ecx, dword [0x547570]
lea edx, [esp + 0x28]
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x64], ebx
call fcn.00518890
add esp, 0x20
test eax, eax
je 0x4c3168
mov ebp, 0x5c
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], 7
jle 0x4c313a
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x4c2df6
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4c2e0a
mov edx, dword [0x547570]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00405920
lea eax, [esp + 0x5c]
mov ecx, 7
mov edx, dword [0x547570]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4c2e13
xor edi, edi
lea esi, [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x547570]
push ebp
push edi
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.005190f0
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
je 0x4c2e92
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c2e62
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c2e69
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c2e77
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4c2e8e
mov ecx, esi
call fcn.004124c0
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x14]
cmp edi, 3
jge 0x4c2ec9
mov eax, dword [esi]
push eax
call fcn.0053232e
add esp, 4
cmp eax, 1
jle 0x4c2eae
mov eax, 1
jmp 0x4c2eb6
cmp eax, 0xffffffff
jge 0x4c2eb6
or eax, 0xffffffff
push eax
push 0x548b44
push esi
call fcn.00405cb0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [0x547574]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x4c2ef3
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c2ef3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
inc edi
add esi, 4
cmp edi, 4
jl 0x4c2e27
lea ecx, [esp + 0x68]
call fcn.004055c0
mov edi, dword [esp + 0x68]
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
je 0x4c2f36
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
jne 0x4c2f1d
mov eax, dword [esp + 0x68]
mov ecx, edi
sub ecx, eax
mov esi, dword [eax - 8]
sar ecx, 1
sub esi, ecx
lea edx, [esi + esi + 2]
push edx
push edi
push eax
call fcn.00532360
mov eax, dword [esp + 0x74]
add esp, 0xc
lea ecx, [esp + 0x68]
mov dword [eax - 8], esi
call fcn.004055c0
mov edi, dword [esp + 0x68]
xor esi, esi
cmp word [edi], si
je 0x4c2fac
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
je 0x4c2f87
test esi, esi
jne 0x4c2f89
mov esi, edi
jmp 0x4c2f89
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], 0
jne 0x4c2f6f
test esi, esi
je 0x4c2fac
mov word [esi], 0
mov eax, dword [esp + 0x68]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov ecx, dword [0x547570]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ebp
push edx
push 1
mov dword [esp + 0x1c], ecx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x20]
push eax
call fcn.004059f0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
mov edx, dword [0x547570]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x44]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.004059f0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x38]
push edx
call fcn.00405440
lea ecx, [esp + 0x24]
call fcn.00405700
mov eax, dword [0x547570]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], ebp
push ecx
mov edx, dword [eax - 8]
push 1
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004059f0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.00405440
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x68]
lea edx, [esp + 0x64]
push ecx
push ebp
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00412c10
lea edx, [esp + 0x58]
push eax
push edx
call fcn.004cb540
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00412c10
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x54]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x3c]
call fcn.00405700
mov ecx, dword [0x547570]
push ebx
lea edx, [esp + 0x30]
push 0x548b44
push edx
mov dword [esp + 0x38], ecx
call fcn.00405cb0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
push 0
mov edx, dword [esi + 0x5c]
push eax
push ecx
push edx
call fcn.0048ee10
mov eax, dword [esi + 0x5c]
inc ebx
push 0
push ebx
push eax
push 0x547afc
call fcn.0048ea80
add esp, 0x2c
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
push fcn.00405700
push 7
lea ecx, [esp + 0x64]
push 4
push ecx
call fcn.004018d0
lea ecx, [esp + 0x1c]
call fcn.00405700
mov esi, dword [esp + 0x58]
push 0x554e48
lea ecx, [esp + 0x1c]
call fcn.00433110
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
push edx
push eax
push esi
push ecx
call fcn.00518890
add esp, 0x10
test eax, eax
jne 0x4c2dd1
mov ecx, dword [esp + 0x20]
call fcn.004c1d00
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret