Function at 0x419210
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 0x41925c
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 0x41930c
mov eax, dword [ebp - 0x828]
mov ebx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x830]
sub esi, ebx
cmp eax, esi
jl 0x41930c
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 0x419321
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
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.004212d0
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 0x4193a1
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 0x419374
xor ebx, ebx
cmp esi, 0x3ed
setae bl
mov esi, dword [ebp - 0x840]
cmp byte [edx + 0xd], 0
jne 0x4193b0
cmp dword [edx + 0x10], 0x3ee
jb 0x4193e8
push 0x14
call fcn.0041c63c
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.00421800
add esp, 4
mov esi, dword [0x431608]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0xd]
xor ebx, ebx
test cl, cl
jne 0x419419
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 0x4193f0
xor ebx, ebx
cmp edx, 0x3f4
setae bl
jmp 0x41941d
mov edi, eax
mov ecx, esi
cmp byte [ecx + 0xd], 0
jne 0x41942c
cmp dword [ecx + 0x10], 0x3f5
jb 0x419468
cmp dword [0x43160c], 0xccccccc
je 0x419506
push 0x14
call fcn.0041c63c
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.00421800
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, 0x42b580
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b584
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b588
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b58c
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b590
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b594
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b598
call fcn.004223f0
mov ecx, esi
mov edx, 0x42b59c
call fcn.004223f0
jmp 0x41930c
call fcn.00421910
int3