Function at 0x418d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x83c
mov eax, dword [0x430014]
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 0x418d7c
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 0x418e2c
mov eax, dword [ebp - 0x828]
mov ebx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x830]
sub esi, ebx
cmp eax, esi
jl 0x418e2c
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 0x418e41
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
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 [0x430608]
mov ecx, dword [esi + 4]
call fcn.00420ee0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x43060c], 0
mov esi, dword [0x430608]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0xd]
xor ebx, ebx
mov edi, eax
mov edx, esi
test cl, cl
jne 0x418ec1
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 0x418e94
xor ebx, ebx
cmp esi, 0x3ed
setae bl
mov esi, dword [ebp - 0x840]
cmp byte [edx + 0xd], 0
jne 0x418ed0
cmp dword [edx + 0x10], 0x3ee
jb 0x418f08
push 0x14
call fcn.0041c24c
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.00421410
add esp, 4
mov esi, dword [0x430608]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0xd]
xor ebx, ebx
test cl, cl
jne 0x418f39
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 0x418f10
xor ebx, ebx
cmp edx, 0x3f4
setae bl
jmp 0x418f3d
mov edi, eax
mov ecx, esi
cmp byte [ecx + 0xd], 0
jne 0x418f4c
cmp dword [ecx + 0x10], 0x3f5
jb 0x418f88
cmp dword [0x43060c], 0xccccccc
je 0x419026
push 0x14
call fcn.0041c24c
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.00421410
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, 0x42a564
call fcn.00422000
mov ecx, esi
mov edx, 0x42a568
call fcn.00422000
mov ecx, esi
mov edx, 0x42a56c
call fcn.00422000
mov ecx, esi
mov edx, 0x42a570
call fcn.00422000
mov ecx, esi
mov edx, 0x42a574
call fcn.00422000
mov ecx, esi
mov edx, 0x42a578
call fcn.00422000
mov ecx, esi
mov edx, 0x42a57c
call fcn.00422000
mov ecx, esi
mov edx, 0x42a580
call fcn.00422000
jmp 0x418e2c
call fcn.00421520
int3