Function at 0x40d640
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x54
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x50], eax
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, ecx
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + 0x18]
mov ebp, dword [ecx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x3e8]
push 0
push 0
push 0x147
dec edx
dec eax
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x32
lea edx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3e8]
push edx
push eax
call ebx
lea ecx, [esp + 0x2c]
push ecx
call fcn.00419671
mov edx, dword [esi + 0x418]
add esp, 4
push 0
push 0
push 0x147
push edx
mov dword [esp + 0x2c], eax
call edi
mov ecx, dword [esi + 0x418]
mov dword [esp + 0x10], eax
push 0x32
lea eax, [esp + 0x30]
push eax
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
call fcn.00419671
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x94]
call fcn.00407080
mov edi, dword [esp + 0x70]
mov ecx, dword [esi + 0x94]
xor edx, edx
test edi, edi
sete dl
push edx
call fcn.00407060
mov eax, dword [esi + 0x3e8]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push edi
push eax
call ebx
mov ecx, dword [esi + 0x418]
push edi
push ecx
call ebx
lea eax, [esi + 0x7c]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jne 0x40d7bc
push ebp
mov ecx, esi
call fcn.0040d1c0
test eax, eax
jne 0x40d836
push 0x10
call fcn.00418c04
add esp, 4
test eax, eax
je 0x40d773
mov edx, dword [eax + 0xc]
dec edx
mov dword [eax + 8], edx
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40d775
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov dword [eax], 1
mov dword [eax + 8], edx
mov dword [eax + 4], ebp
mov edi, dword [esi + 0x74]
mov ecx, dword [edi + 4]
add esi, 0x60
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040d180
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040d5a0
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
jmp 0x40d836
mov eax, dword [esi + 0x74]
mov ebp, dword [eax]
lea ebx, [esi + 0x60]
mov esi, dword [ebx]
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx]
test esi, esi
je 0x40d7d3
cmp esi, eax
je 0x40d7d8
call fcn.00418b72
cmp ebp, edi
je 0x40d836
test esi, esi
jne 0x40d817
call fcn.00418b72
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40d7f1
call fcn.00418b72
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
cmp dword [edi + 4], ecx
je 0x40d81f
test esi, esi
jne 0x40d81b
call fcn.00418b72
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40d812
call fcn.00418b72
mov ebp, dword [ebp]
jmp 0x40d7c6
mov eax, dword [esi]
jmp 0x40d7e7
mov eax, dword [esi]
jmp 0x40d808
push ebp
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.0040d250
push edi
call fcn.00418b82
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x54
ret 0xc