Function at 0x45a590
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x45a7e3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a7e3
push 0x100
push 4
push eax
call fcn.00425670
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.005091b0
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x45a5ea
mov ecx, dword [esi]
push 7
push eax
push ecx
push eax
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebx + 0x1314], 9
je 0x45a609
mov edx, dword [esi]
push 7
push 0
push edx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 8]
push 0x100
push 4
push eax
call fcn.00425670
mov edx, dword [esi + 8]
mov al, byte [edx]
add esp, 0xc
cmp al, 0x40
jne 0x45a7cd
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a630
sub eax, edi
cmp eax, 1
jbe 0x45a7cd
push edx
call fcn.0058ea90
add esp, 4
test eax, eax
jne 0x45a7cd
mov edx, dword [esi + 8]
push ebp
push edx
call fcn.005091b0
add esp, 8
test eax, eax
je 0x45a69b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x45a69b
push 6
push 0
push 0
push 0x397
call fcn.00424130
add esp, 8
push eax
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 8]
push edx
lea edi, [ebx + 8]
push 0x132
push edi
call fcn.00425550
mov ebp, dword [esp + 0x24]
mov edx, ebp
add esp, 0xc
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45a6c0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45a77b
mov ebx, dword [esp + 0x1c]
push esi
push ebx
push 3
mov byte [ebx], cl
call fcn.0051c470
mov al, byte [ebx]
add esp, 0xc
test al, al
je 0x45a734
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45a6f0
mov ax, word [0x5f4858]
mov word [edi], ax
mov eax, ebx
mov ecx, ebx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45a705
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45a713
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.0055a760
add esp, 8
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1354]
test ecx, ecx
mov eax, ebp
je 0x45a74d
cmp byte [ebp], 0x40
jne 0x45a74d
lea eax, [ebp + 1]
mov edx, dword [ebx]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x6a0f38]
push eax
call fcn.00554f60
push 0
mov dword [0x6a0f38], eax
call fcn.0055f1c0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx]
push 0x400
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi], 0
je 0x45a738
push 0x20
push esi
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x45a738
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a7a4
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45a7b0
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]
jmp 0x45a738
mov ecx, dword [esi]
push 3
push 0
push ecx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi]
push 0
push 0
push edx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret