Function at 0x40d54e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x427357
call fcn.0041ba64
sub esp, 0xb4
mov eax, dword [0x42c300]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
xor edi, edi
push 0x3e8
mov dword [eax], edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x188
push eax
mov dword [ebp - 0x38], eax
call esi
cmp eax, 0xffffffff
je 0x40d6bc
push edi
push eax
push 0x199
push dword [ebp - 0x38]
mov byte [ebp - 0x31], 1
call esi
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x38], esi
je 0x40d69c
cmp dword [esi + 0x10], edi
je 0x40d5d6
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
neg eax
sbb al, al
inc al
mov byte [ebp - 0x31], al
je 0x40d693
push 0x24
call fcn.0041bc66
pop ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40d5f1
mov ecx, eax
call fcn.0040ccd5
jmp 0x40d5f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x60], eax
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebx + 0x60]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x60]
cmp dword [eax + 0x10], 0
je 0x40d61e
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebx + 0x60]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [ebx + 0x60]
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 0x60]
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebx + 0x60]
push dword [esi + 0x20]
add eax, 0x20
push eax
call fcn.00405850
push 0x3ea
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d693
mov ecx, ebx
call fcn.0040c80f
mov edi, eax
test edi, edi
je 0x40d693
push 0
push 0
push 0xf0
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x40d68c
mov esi, 0x403df0
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov ecx, ebx
call fcn.0040cff1
mov al, byte [ebp - 0x31]
neg al
sbb eax, eax
and eax, 3
add eax, 3
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d739
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], 1
lea eax, [ebp + 0x14]
push eax
push 0x277e
call fcn.00410cb6
test eax, eax
jne 0x40d72c
push 0x20
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0x11], 0
call fcn.00405759
mov byte [ebp - 4], 2
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x40d72c
push dword [ebp - 0xc0]
call fcn.0041b1d4
pop ecx
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop ebx
call fcn.0041b4ee
leave
ret 0x10