Function at 0x486160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe1cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1508
call fcn.004dae70
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x14]
push 0xfd
call fcn.004447d0
mov dword [esi], 1
push dword [edi + 4]
call fcn.0045df40
lea esi, [edi + 0x6c]
lea eax, [edi + 0x28]
push esi
push eax
call fcn.004bda30
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x4861d5
push 0x11
push 0x5093e4
mov ecx, esi
call fcn.0043b750
mov ecx, edi
call fcn.00486910
test eax, eax
jne 0x4861f0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x486569
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, edi
mov dword [edi + 0x64], eax
call fcn.004860c0
cmp dword [edi + 0x68], 0
je 0x48653f
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x450]
push eax
push dword [edi + 4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x450], xmm0
call ebx
push 0x116
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [edi + 0x68]
mov esi, eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x100
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486263
sub ecx, edx
lea eax, [ebp - 0x1514]
push eax
sar ecx, 1
lea eax, [ebp - 0x210]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x428]
sub eax, dword [ebp - 0x430]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp - 0x1514], eax
jle 0x486315
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x150c]
call fcn.0043a420
push 0x50b804
push dword [edi + 0x3c]
lea ecx, [ebp - 0x150c]
mov dword [ebp - 4], 0
call fcn.00447330
push dword [ebp - 0x150c]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x150c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48637c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48637c
lea eax, [ebp - 0x430]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x486331
lea eax, [ebp - 0x428]
push eax
push dword [edi + 4]
call ebx
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x42c]
add eax, 5
mov ecx, dword [ebp - 0x430]
add edx, 5
push 0x45
mov dword [ebp - 0x424], eax
sub eax, edx
push eax
mov eax, dword [ebp - 0x428]
sub eax, ecx
mov dword [ebp - 0x42c], edx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x123
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x410]
push 0x100
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
jmp 0x4863b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4863b0
sub ecx, edx
lea eax, [ebp - 0x1514]
push eax
sar ecx, 1
lea eax, [ebp - 0x410]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x440]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x438]
sub eax, dword [ebp - 0x440]
cmp dword [ebp - 0x1514], eax
jle 0x4864da
push 0x117
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x420]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x48643c
lea eax, [ebp - 0x418]
push eax
push dword [edi + 4]
call ebx
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x414]
sub edx, 8
mov ecx, dword [ebp - 0x420]
sub eax, edx
push 1
push eax
mov eax, dword [ebp - 0x418]
sub eax, ecx
mov dword [ebp - 0x41c], edx
push eax
push edx
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push pe_nt_image_headers32
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x420]
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x4864a8
lea eax, [ebp - 0x418]
push eax
push dword [edi + 4]
call ebx
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x414]
sub edx, 8
mov ecx, dword [ebp - 0x420]
sub eax, edx
push 1
push eax
mov eax, dword [ebp - 0x418]
sub eax, ecx
mov dword [ebp - 0x41c], edx
push eax
push edx
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x117
push dword [edi + 4]
call ebx
push pe_nt_image_headers32
push dword [edi + 4]
call ebx
push 0x10b4
mov esi, eax
lea eax, [ebp - 0x1504]
push 0
push eax
call fcn.004d9060
add esp, 0xc
mov dword [ebp - 0x1508], 3
lea eax, [ebp - 0x1508]
mov dword [ebp - 0x14fc], 0x10
mov dword [ebp - 0x1500], 0x10
push eax
push 0
push 0x702
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0x117
push dword [edi + 4]
call esi
push 1
push pe_nt_image_headers32
push dword [edi + 4]
call esi
mov dword [edi + 0x40], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 0x10