Function at 0x43c2d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc
mov eax, dword [0x546560]
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 0x43c2f5
cmp dword [eax - 4], ecx
jge 0x43c336
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x43c2fe
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x43c336
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.005320d3
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
add esp, 4
test eax, eax
je 0x43c3a4
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
jne 0x43c38f
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.00531870
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 0x43c416
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x43c3f5
test esi, esi
jne 0x43c3f7
mov esi, edi
jmp 0x43c3f7
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43c3dd
test esi, esi
je 0x43c416
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.005320d3
add esp, 4
test eax, eax
je 0x43c448
push edi
call ebx
mov edi, eax
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
jne 0x43c433
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.00531870
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 0x43c4ba
mov ax, word [edi]
push eax
call fcn.005320d3
add esp, 4
test eax, eax
je 0x43c499
test esi, esi
jne 0x43c49b
mov esi, edi
jmp 0x43c49b
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x43c481
test esi, esi
je 0x43c4ba
mov word [esi], 0
mov eax, dword [esp + 0x24]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov ecx, dword [0x546560]
mov edx, 0x547f58
test edx, edx
mov dword [esp + 0x20], ecx
je 0x43c507
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x43c507
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x43c507
mov eax, dword [esp + 0x20]
inc esi
push esi
push 0x547f58
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [0x546560]
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.00413220
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