Function at 0x100314f8
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x42c
mov eax, dword [0x102bff3c]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
push 0xa
call fcn.1002a528
push eax
call fcn.1003bec0
mov edi, eax
push 0xb
mov dword [esp + 0x2c], edi
call fcn.1002a528
push 0xc
call fcn.1002a528
push 0xd
call fcn.1002a528
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x14
xor ebp, ebp
push ebp
push 0x3f9
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push ebp
push 0x3fd
push edi
call ebx
push eax
call esi
push ebp
push 0x3fe
push edi
call ebx
push eax
call esi
push ebp
push 0x3ff
push edi
call ebx
push eax
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x28]
push eax
push edi
call ebp
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x2c]
push 0x3ee
push edi
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ebx
mov dword [esp + 0x18], ebx
call ebp
push 0x200
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
call dword [sym.imp.USER32.dll_GetDC]
xor ebp, ebp
mov ebx, eax
push ebp
push ebp
push 0x31
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x18]
push eax
push 1
push 0x10238a34
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x100315fe
push 0x410
sub ecx, edx
lea eax, [esp + 0x2c]
push eax
sar ecx, 1
lea eax, [esp + 0x40]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
imul eax, dword [esp + 0x1c], 3
mov ebp, dword [esp + 0x34]
sub ebp, dword [esp + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push eax
push dword [esp + 0x1c]
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x28]
call ebx
mov eax, dword [esp + 0x1c]
shl eax, 2
push 0x412
sub esi, eax
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x1c]
push 4
shl ecx, 2
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push 0
push esi
call ebx
push 0x413
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
movd xmm0, dword [esp + 0x18]
mov edi, eax
mov esi, dword [esp + 0x1c]
cvtdq2pd xmm0, xmm0
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esi + esi]
push ecx
mulsd xmm0, qword [0x1028a7e0]
cvttsd2si ecx, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
sub edx, ecx
mov ecx, dword [esp + 0x18]
push edx
mulsd xmm0, qword [0x10239160]
cvttsd2si eax, xmm0
sub ecx, eax
push ecx
push dword [esp + 0x28]
push 0
push edi
call ebx
mov edi, dword [esp + 0x20]
push 0x408
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [esp + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10239158]
cvttsd2si ecx, xmm0
push 4
push 3
sub ebp, ecx
cdq
pop ecx
idiv ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
sub ecx, ebp
push ecx
push dword [esp + 0x1c]
push ebp
push 0
push 0
push esi
call ebx
push dword [esp + 0x24]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b70aa
add esp, 0x42c
ret