Function at 0x52e520
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 8], 0
jne 0x52e53c
mov eax, 1
add esp, 0x14
ret
mov eax, dword [eax + 4]
push ebp
push esi
push 0x239b
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, eax
push 0xe
push esi
mov dword [esp + 0x18], esi
call ebp
test eax, eax
jge 0x52e571
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
push edi
lea ecx, [esp + 0x10]
lea edi, [eax + 1]
push ecx
push edi
call sym.convertifd.exe_EdMalloc
add esp, 8
test eax, eax
jne 0x52e58e
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x10]
push ebx
push edi
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0xb0
push esi
call ebp
mov ebx, dword [esp + 0x2c]
movzx esi, ax
shr eax, 0x10
cmp dword [esp + 0x30], 0
mov dword [esp + 0x20], eax
je 0x52e5c4
xor edi, edi
jmp 0x52e677
push 0x28
push ebx
call fcn.00513950
mov edi, eax
add esp, 8
test edi, edi
je 0x52e677
lea eax, [edi + 1]
push 0x28
push eax
call fcn.00513950
add esp, 8
test eax, eax
je 0x52e5ed
mov edi, eax
test edi, edi
je 0x52e677
lea ecx, [edi + 1]
push 0x5831f4
push ecx
call fcn.005181e0
add eax, 1
add esp, 8
cmp byte [eax + edi], 0x29
jne 0x52e613
xor edi, edi
jmp 0x52e677
push 0x5823a8
push edi
call fcn.005173a0
add esp, 8
test eax, eax
je 0x52e677
sub eax, ebx
add eax, 4
mov edi, eax
lea edx, [esp + 0x18]
push edx
lea eax, [edi + 1]
push eax
call sym.convertifd.exe_EdMalloc
add esp, 8
test eax, eax
jne 0x52e649
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
push edi
push ebx
push ecx
call fcn.00513780
mov edx, dword [esp + 0x24]
mov byte [edi + edx - 1], 0x29
mov eax, dword [esp + 0x24]
mov byte [edi + eax], 0
mov ebx, dword [esp + 0x24]
push 0x28
push ebx
call fcn.00513950
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x52e6de
test esi, esi
jle 0x52e6dc
mov ecx, dword [esp + 0x14]
mov al, byte [esi + ecx - 1]
sub esi, 1
cmp al, 0x29
je 0x52e6b7
movsx edx, al
push edx
call fcn.00517037
add esp, 4
test eax, eax
je 0x52e6ca
mov eax, dword [esp + 0x14]
movsx ecx, byte [esi + eax]
push ecx
call fcn.00517037
add esp, 4
test eax, eax
je 0x52e6ca
mov edx, dword [esp + 0x10]
push 0x581984
push 0
push 0xc2
push edx
call ebp
mov eax, dword [esp + 0x10]
push ebx
push 0
push 0xc2
push eax
jmp 0x52e7ec
cmp eax, esi
jle 0x52e7df
lea ecx, [esi + 3]
cmp eax, ecx
jne 0x52e776
mov edx, dword [esp + 0x14]
push 3
lea eax, [esi + edx]
push 0x5823a8
push eax
call fcn.00513bae
add esp, 0xc
test eax, eax
jne 0x52e776
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push esi
push esi
push 0x239b
push edx
call sym.convertifd.exe_IpSetSel
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebx
push 0
push 0xc2
push eax
call ebp
mov ecx, dword [esp + 0x10]
push 0x582ea4
push 0
push 0xc2
push ecx
call ebp
test edi, edi
jne 0x52e7f2
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x52e750
sub eax, edx
lea esi, [esi + eax + 2]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea edx, [esi + 3]
push edx
push esi
push 0x239b
push ecx
jmp 0x52e82b
mov edx, dword [esp + 0x10]
push ebx
push 0
push 0xc2
push edx
call ebp
test edi, edi
jne 0x52e7f2
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edi, [eax + edx]
call fcn.0052e4a0
add esp, 8
test eax, eax
je 0x52e833
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x52e7b3
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x20]
add eax, ecx
add esi, eax
mov eax, dword [esp + 0x28]
sub edx, ecx
mov ecx, dword [eax + 4]
add edx, esi
push edx
push esi
push 0x239b
push ecx
jmp 0x52e82b
mov edx, dword [esp + 0x10]
push ebx
push 0
push 0xc2
push edx
call ebp
test edi, edi
je 0x52e833
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0052e4a0
add esp, 8
test eax, eax
je 0x52e833
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, eax
sub edx, ebx
add edx, edi
add esi, edx
mov edx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [edx + 4]
add ecx, esi
push ecx
push esi
push 0x239b
push eax
call sym.convertifd.exe_IpSetSel
add esp, 0x10
mov ecx, dword [esp + 0x14]
push ecx
call sym.convertifd.exe_EdFree
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x52e851
push eax
call sym.convertifd.exe_EdFree
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret