Function at 0x277ce245
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push ebx
push esi
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push edi
push 0xf0
push 0x9c7
push dword [ebp + 8]
mov ebx, ecx
mov dword [eax], edi
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 4]
add eax, 0xc0
neg edx
mov ecx, dword [eax]
sbb edx, edx
push edx
push eax
call dword [ecx + 0x34]
cmp eax, edi
mov dword [ebp - 8], eax
jge 0x277ce340
xor eax, eax
cmp dword [ebp - 4], edi
push edi
sete al
push eax
push 0xf1
push 0x9c7
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebx + 0x30]
lea ecx, [ebp - 0x64]
call fcn.277c1bf2
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x64]
push eax
call fcn.277cc5b5
cmp eax, edi
jl 0x277ce58e
cmp dword [ebp - 0x1c], edi
je 0x277ce58e
mov byte [ebx + 0x34], 3
push 0x9c5
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x277ce5a2
push 8
pop eax
or byte [ebx + 0x34], al
push edi
push edi
push 0xf0
push 0x9c7
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x64]
and eax, 4
or byte [ebx + 0x34], al
call fcn.277c214a
xor eax, eax
cmp dword [ebp - 8], edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
cmp dword [ebp - 4], edi
je 0x277ce461
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebx + 0x30]
lea edx, [ebp - 0x18]
add eax, 0xc0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x277ce419
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push dword [ebx + 0x30]
call fcn.277c2529
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
lea ecx, [ebp - 0xe4]
push eax
mov dword [ebp - 4], eax
call fcn.277b378f
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 0xe4]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0xe4]
mov dword [ebx + 0x38], 1
push 0x9c5
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x18]
mov dword [ebx + 0x38], edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.277c1c4d
cmp dword [ebp - 0xe4], edi
mov dword [ebp - 8], eax
je 0x277ce40c
test byte [ebp - 0x68], 1
je 0x277ce40c
push dword [ebp - 0xe4]
push edi
push dword [0x27827310]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x40]
call fcn.277c214a
jmp 0x277ce2bc
push edi
push 0x9c5
push dword [ebp + 8]
mov dword [ebx + 0x38], 1
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
push edi
push 0xf1
push 0x9c7
push dword [ebp + 8]
mov dword [ebx + 0x38], edi
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x30]
push edi
add eax, 0xc0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x277ce2bc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x268]
push 0x104
push eax
push 0x9c5
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x268], 0
mov word [ebp - 0x18], 8
jne 0x277ce4fa
mov dword [ebp - 0x10], edi
sub esp, 0x10
lea esi, [ebp - 0x18]
mov edi, esp
mov eax, dword [ebx + 0x30]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc0]
add eax, 0xc0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x3c]
test eax, eax
mov dword [ebp - 8], eax
jl 0x277ce50e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push dword [ebx + 0x30]
call fcn.277c2529
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.277c1c4d
lea ecx, [ebp - 0x40]
mov dword [ebp - 8], eax
call fcn.277c214a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
jmp 0x277ce2bc
lea eax, [ebp - 0x268]
push edi
push eax
call fcn.277b7f09
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
jmp 0x277ce49a
mov edi, 0xff
lea eax, [ebp - 0x368]
push edi
push eax
push 0x8bb0
mov ecx, ebx
call fcn.277da69b
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push eax
call esi
lea eax, [ebp - 0x164]
push edi
push eax
push 0x7da
mov ecx, ebx
call fcn.277da69b
push eax
call esi
lea eax, [ebp - 0x164]
push 0x30
push eax
lea eax, [ebp - 0x368]
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
push 0x9c5
push dword [ebp + 8]
mov dword [ebx + 0x38], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [ebx + 0x38], esi
jmp 0x277ce4e3
cmp eax, 0x80004002
jne 0x277ce2e8
mov byte [ebx + 0x34], 1
jmp 0x277ce2e8
xor eax, eax
jmp 0x277ce304