Function at 0x43c420
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc
mov eax, dword [0x547570]
push ebx
mov dword [esp + 4], eax
push ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push esi
cmp edx, 1
push edi
mov ecx, 0x400
jg 0x43c445
cmp dword [eax - 4], ecx
jge 0x43c486
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x43c44e
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x43c486
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push 0x400
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov word [edx + eax*2], 0
call fcn.004055c0
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.00532bc3
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
add esp, 4
test eax, eax
je 0x43c4f4
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
jne 0x43c4df
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
lea edx, [edi + edi + 2]
push edx
push esi
push eax
call fcn.00532360
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [eax - 8], edi
call fcn.004055c0
mov edi, dword [esp + 0x10]
xor esi, esi
cmp word [edi], si
je 0x43c566
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
je 0x43c545
test esi, esi
jne 0x43c547
mov esi, edi
jmp 0x43c547
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43c52d
test esi, esi
je 0x43c566
mov word [esi], 0
mov eax, dword [esp + 0x10]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
lea ecx, [esp + 0x24]
call fcn.004055c0
mov edi, dword [esp + 0x24]
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
je 0x43c598
push edi
call ebx
mov edi, eax
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
jne 0x43c583
mov eax, dword [esp + 0x24]
mov ecx, edi
sub ecx, eax
mov esi, dword [eax - 8]
sar ecx, 1
sub esi, ecx
lea edx, [esi + esi + 2]
push edx
push edi
push eax
call fcn.00532360
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [eax - 8], esi
call fcn.004055c0
mov edi, dword [esp + 0x24]
xor esi, esi
cmp word [edi], si
je 0x43c60a
mov ax, word [edi]
push eax
call fcn.00532bc3
add esp, 4
test eax, eax
je 0x43c5e9
test esi, esi
jne 0x43c5eb
mov esi, edi
jmp 0x43c5eb
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43c5d1
test esi, esi
je 0x43c60a
mov word [esi], 0
mov eax, dword [esp + 0x24]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov ecx, dword [0x547570]
mov edx, 0x548f78
test edx, edx
mov dword [esp + 0x20], ecx
je 0x43c657
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x43c657
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x43c657
mov eax, dword [esp + 0x20]
inc esi
push esi
push 0x548f78
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [0x547570]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x24]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x20]
push eax
call fcn.004059f0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.00413070
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
mov eax, dword [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8