Function at 0x459a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 4]
test edx, edx
je 0x459c64
mov eax, dword [edi + 8]
test eax, eax
je 0x459c64
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459a32
sub eax, esi
cmp eax, 0x5a
jbe 0x459a43
mov byte [edx + 0x5a], cl
mov ebp, dword [esp + 0x1c]
mov eax, dword [edi + 4]
push ebp
push eax
call fcn.00503170
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x459a6f
mov ecx, dword [edi]
push 7
push eax
push ecx
push eax
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
ret
cmp dword [eax + 0x71c], 9
je 0x459a8d
mov edx, dword [edi]
push 7
push 0
push edx
push 0
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
ret
mov edx, dword [edi + 8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459a95
sub eax, esi
cmp eax, 0x5a
jbe 0x459aa6
mov byte [edx + 0x5a], cl
mov edx, dword [edi + 8]
cmp byte [edx], 0x40
jne 0x459c4f
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ab7
sub eax, esi
cmp eax, 1
jbe 0x459c4f
push edx
call fcn.00582830
add esp, 4
test eax, eax
jne 0x459c4f
mov ecx, dword [edi + 8]
push ebp
push ecx
call fcn.00503170
add esp, 8
test eax, eax
je 0x459b21
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x459b21
push 6
push 0
push 0
push 0x397
call fcn.00421db0
add esp, 8
push eax
push 0
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 8]
add eax, 8
mov esi, eax
lea ecx, [ecx]
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x459b30
mov ebp, dword [esp + 0x14]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x459b42
mov eax, dword [edi + 0xc]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x459bb9
push edi
push esi
push 3
mov byte [esi], cl
call fcn.00515990
mov al, byte [esi]
add esp, 0xc
test al, al
je 0x459c08
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459b72
mov cx, word [0x5e7420]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x459b88
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459b96
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0xf
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00551b90
add esp, 8
jmp 0x459c08
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 0x104
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi], 0
je 0x459c08
push 0x20
push esi
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x459c08
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459be2
mov edi, ebp
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459bf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x75c]
test edx, edx
mov eax, ebp
je 0x459c21
cmp byte [ebp], 0x40
jne 0x459c21
lea eax, [ebp + 1]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x64531c]
push edx
call fcn.0054c3b0
push 0
mov dword [0x64531c], eax
call fcn.005562e0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret
mov eax, dword [edi]
push 3
push 0
push eax
push 0
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
ret
mov ecx, dword [edi]
push 0
push 0
push ecx
push 0
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
ret