Function at 0x419080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x83c
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x3f6
mov dword [ebp - 0x83c], ecx
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4190cc
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [ebp - 0x838]
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
push esi
push dword [ebp - 0x83c]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea esi, [ebp - 0x810]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ecx, [ebp - 0x828]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41917c
mov eax, dword [ebp - 0x828]
mov ebx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x830]
sub esi, ebx
cmp eax, esi
jl 0x41917c
cvtsi2ss xmm0, eax
cvtsi2ss xmm1, esi
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x848]
cvttss2si eax, dword [ebp - 0x848]
imul eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x834]
mov edx, ecx
sub edx, dword [ebp - 0x82c]
add edx, eax
test edx, edx
jg 0x419191
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d0b0
add esp, 0x83c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x844], edx
push 1
push eax
push esi
push ecx
push ebx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [0x431608]
mov ecx, dword [esi + 4]
call fcn.004212e0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x43160c], 0
mov esi, dword [0x431608]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0xd]
xor ebx, ebx
mov edi, eax
mov edx, esi
test cl, cl
jne 0x419211
mov ebx, eax
mov dword [ebp - 0x840], esi
mov edx, esi
mov edi, ebx
mov esi, dword [ebx + 0x10]
add ebx, 8
cmp esi, 0x3ed
cmovae edx, edi
cmovae ebx, edi
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x4191e4
xor ebx, ebx
cmp esi, 0x3ed
setae bl
mov esi, dword [ebp - 0x840]
cmp byte [edx + 0xd], 0
jne 0x419220
cmp dword [edx + 0x10], 0x3ee
jb 0x419258
push 0x14
call fcn.0041c59c
add esp, 4
mov dword [eax + 0x10], 0x3ed
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
mov ecx, edi
mov edx, ebx
push eax
call fcn.00421810
add esp, 4
mov esi, dword [0x431608]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0xd]
xor ebx, ebx
test cl, cl
jne 0x419289
mov ecx, esi
mov edi, eax
mov edx, dword [eax + 0x10]
add eax, 8
cmp edx, 0x3f4
cmovae ecx, edi
cmovae eax, edi
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x419260
xor ebx, ebx
cmp edx, 0x3f4
setae bl
jmp 0x41928d
mov edi, eax
mov ecx, esi
cmp byte [ecx + 0xd], 0
jne 0x41929c
cmp dword [ecx + 0x10], 0x3f5
jb 0x4192d8
cmp dword [0x43160c], 0xccccccc
je 0x419376
push 0x14
call fcn.0041c59c
add esp, 4
mov dword [eax + 0x10], 0x3f4
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
mov ecx, edi
mov edx, ebx
push eax
call fcn.00421810
add esp, 4
lea esi, [ebp - 0x820]
push esi
mov edi, dword [ebp - 0x83c]
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x844]
add ebx, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ebx, ecx
mov edx, dword [esi + 8]
sub edx, eax
push 1
push ebx
push edx
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, esi
mov edx, 0x42b584
call fcn.00422400
mov ecx, esi
mov edx, 0x42b588
call fcn.00422400
mov ecx, esi
mov edx, 0x42b58c
call fcn.00422400
mov ecx, esi
mov edx, 0x42b590
call fcn.00422400
mov ecx, esi
mov edx, 0x42b594
call fcn.00422400
mov ecx, esi
mov edx, 0x42b598
call fcn.00422400
mov ecx, esi
mov edx, 0x42b59c
call fcn.00422400
mov ecx, esi
mov edx, 0x42b5a0
call fcn.00422400
jmp 0x41917c
call fcn.00421920
int3