Function at 0x4c1bb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov eax, dword [0x546560]
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 0x4c1bd9
cmp dword [eax - 4], ecx
jge 0x4c1c1e
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4c1be2
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x4c1bf4
xor esi, esi
jmp 0x4c1c20
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, 0x54681c
test edx, edx
mov word [ecx + eax*2], 0
jne 0x4c1c74
xor eax, eax
jmp 0x4c1c7b
push 0x54681c
call esi
push 0x54681c
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 0x4c1ca2
mov edx, dword [eax - 4]
test edx, edx
jge 0x4c1ced
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4c1cab
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x4c1cc3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
jmp 0x4c1cf1
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 0x546aec
call fcn.0048db30
mov ecx, dword [0x546560]
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.00517c30
add esp, 0x20
test eax, eax
je 0x4c20d8
mov ebp, 0x5c
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], 7
jle 0x4c20aa
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x4c1d66
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4c1d7a
mov edx, dword [0x546560]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00405920
lea eax, [esp + 0x5c]
mov ecx, 7
mov edx, dword [0x546560]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4c1d83
xor edi, edi
lea esi, [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x546560]
push ebp
push edi
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.00518490
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
je 0x4c1e02
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4c1dd2
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4c1dd9
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4c1de7
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4c1dfe
mov ecx, esi
call fcn.00412670
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 0x4c1e39
mov eax, dword [esi]
push eax
call fcn.0053183e
add esp, 4
cmp eax, 1
jle 0x4c1e1e
mov eax, 1
jmp 0x4c1e26
cmp eax, 0xffffffff
jge 0x4c1e26
or eax, 0xffffffff
push eax
push 0x547b34
push esi
call fcn.00405cb0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [0x546564]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x4c1e63
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c1e63
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
inc edi
add esi, 4
cmp edi, 4
jl 0x4c1d97
lea ecx, [esp + 0x68]
call fcn.004055c0
mov edi, dword [esp + 0x68]
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x4c1ea6
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
jne 0x4c1e8d
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.00531870
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 0x4c1f1c
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x4c1ef7
test esi, esi
jne 0x4c1ef9
mov esi, edi
jmp 0x4c1ef9
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], 0
jne 0x4c1edf
test esi, esi
je 0x4c1f1c
mov word [esi], 0
mov eax, dword [esp + 0x68]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov ecx, dword [0x546560]
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 [0x546560]
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 [0x546560]
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.00412dc0
lea edx, [esp + 0x58]
push eax
push edx
call fcn.004ca4c0
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00412dc0
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 [0x546560]
push ebx
lea edx, [esp + 0x30]
push 0x547b34
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.0048dec0
mov eax, dword [esi + 0x5c]
inc ebx
push 0
push ebx
push eax
push 0x546aec
call fcn.0048db30
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 0x553dd8
lea ecx, [esp + 0x1c]
call fcn.00433000
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
push edx
push eax
push esi
push ecx
call fcn.00517c30
add esp, 0x10
test eax, eax
jne 0x4c1d41
mov ecx, dword [esp + 0x20]
call fcn.004c0c70
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