Function at 0x418374
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7b4
mov eax, 0x4c92f4
push ebx
push esi
push edi
call fcn.0049fef4
mov esi, 0x4c3ef3
lea edi, [ebp - 0x438]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], 0x1f
mov word [ebp - 0x20], 8
xor eax, eax
mov dword [ebp - 4], eax
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
push 0
mov eax, dword [ebp + 8]
call fcn.0047b1c8
push eax
call sub.USER32.DLL_GetWindow
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1d68], 0xffffffff
push 0x4c5e68
push 0
push 0x1f0001
call sub.KERNEL32.DLL_OpenMutexA
test eax, eax
je 0x418417
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4185dc
xor esi, esi
test ebx, ebx
je 0x418583
push 0x400
push 0
lea eax, [ebp - 0x838]
push eax
call fcn.0049fac0
add esp, 0xc
lea edx, [ebp - 0x838]
push 0x400
push edx
push ebx
call sub.USER32.DLL_GetWindowTextA
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x838]
lea eax, [ebp - 8]
call fcn.004adb50
mov edx, eax
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004adc7c
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x20], 0x2c
xor ecx, ecx
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
inc dword [ebp - 0x14]
call fcn.004ade88
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004adc7c
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004adc4c
cmp dword [ebp - 4], 0
je 0x4184b9
mov ecx, dword [ebp - 4]
jmp 0x4184be
mov ecx, 0x4c5e6f
mov edi, ecx
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x838]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x838]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push eax
call fcn.0049fbf4
pop ecx
test eax, eax
jle 0x418568
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x438]
push ecx
lea eax, [ebp - 0x838]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004293d8
add esp, 0x10
cmp al, 1
jne 0x418568
lea ecx, [ebp - 0x38]
push ecx
push ebx
call sub.USER32.DLL_GetWindowThreadProcessId
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
add edx, 0x1fc4
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00429444
add esp, 8
test al, al
jne 0x418568
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4185dc
push 2
push ebx
call sub.USER32.DLL_GetWindow
mov ebx, eax
inc esi
cmp esi, 0x1f4
jg 0x418583
test ebx, ebx
jne 0x418421
call fcn.004424f8
and eax, 0xff
test eax, eax
je 0x4185b4
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4185dc
inc eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x1d68], eax
xor eax, eax
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret