Function at 0x475bd4
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x5c
pushal
mov edi, eax
cmp dword [edi + 8], 0
je 0x475be8
mov eax, dword [edi + 8]
call fcn.004b3428
push 0
push 0
push 0xe
mov eax, dword [edi]
mov eax, dword [eax + 0x5b]
push eax
call sub.USER32.dll_SendMessageA
mov ebx, eax
inc ebx
mov eax, ebx
call fcn.004c51f0
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
push eax
push ebx
push 0xd
mov eax, dword [edi]
mov eax, dword [eax + 0x5b]
push eax
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xd4
mov eax, dword [edi]
mov eax, dword [eax + 0x5b]
push eax
call sub.USER32.dll_SendMessageA
movzx ebx, ax
shr eax, 0x10
and ax, 0xffff
movzx eax, ax
add ebx, eax
lea eax, [esp + 0x60]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x5b]
push eax
call sub.USER32.dll_GetClientRect
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
sub ecx, eax
cmp ecx, ebx
jae 0x475c63
mov dword [esp + 0x48], 0
jmp 0x475c69
sub ecx, ebx
mov dword [esp + 0x48], ecx
mov eax, dword [edi]
mov eax, dword [edi]
mov ebx, dword [eax + 4]
call dword [ebx]
mov esi, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x63]
mov eax, dword [eax + 0x48]
push eax
push esi
call sub.GDI32.dll_SelectObject
mov dword [esp + 0x50], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x38], eax
mov ebx, dword [edi + 4]
call fcn.00475fdc
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x78], 0
mov eax, 0x20
mov dword [esp + 0x20], eax
shl eax, 3
call fcn.004b3d54
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
mov dword [edi + 0xc], 0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 4]
lea eax, [eax + ebx]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x40], 0
jne 0x475d22
mov eax, dword [esp + 0x38]
lea ebx, [esp + 0x78]
call fcn.00475ecc
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
sub eax, ebx
add eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
jmp 0x475d2a
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
cmp eax, 0
je 0x475d58
lea ecx, [esp + 0x70]
push ecx
push eax
push dword [esp + 0x4c]
push esi
call sub.GDI32.dll_GetTextExtentPoint32A
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jbe 0x475d58
mov dword [esp + 0x40], 1
jmp 0x475df3
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], 0
je 0x475dda
mov dword [esp + 0x40], 0
jmp 0x475de8
mov eax, dword [esp + 0x30]
cmp eax, 0
jne 0x475d7f
jmp 0x475e00
add ebx, eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
call fcn.00475f70
mov ebx, dword [esp + 0x28]
cmp eax, ebx
je 0x475dc0
mov dword [esp + 0x3c], eax
sub eax, ebx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x70]
push ecx
push eax
push dword [esp + 0x4c]
push esi
call sub.GDI32.dll_GetTextExtentPoint32A
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
cmp ecx, eax
ja 0x475d85
mov ecx, dword [esp + 0x30]
sub dword [esp + 0x78], ecx
jmp 0x475e18
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x28], ebx
je 0x475e62
jmp 0x475e2e
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x4c], 0
je 0x475cf6
mov ecx, dword [esp + 0x2c]
cmp ecx, 0
je 0x475d71
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x24]
mov dword [eax + edx*8 + 4], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + edx*8], ebx
cmp ecx, 0
je 0x475dca
inc dword [edi + 0xc]
mov ebx, dword [esp + 0x20]
dec ebx
mov dword [esp + 0x20], ebx
cmp ebx, 0
jne 0x475cdc
mov ecx, 0x20
mov dword [esp + 0x20], ecx
mov ebx, dword [edi + 0xc]
add ebx, ecx
shl ebx, 3
call fcn.004b34d0
mov dword [esp + 0x24], eax
jmp 0x475cdc
mov dword [edi + 8], eax
push dword [esp + 0x50]
push esi
call sub.GDI32.dll_SelectObject
mov eax, dword [edi]
mov ebx, esi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
call dword [ecx + 4]
popal
add esp, 0x5c
ret