Function at 0x419660
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4576b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [0x46aed0]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test al, 1
mov dword [esp + 0x18], edi
jne 0x4196ad
mov dl, al
mov ecx, 0x46aee0
or dl, 1
mov byte [0x46aed0], dl
call fcn.00433620
push 0x403fb0
call fcn.00442500
add esp, 4
push 0xd
mov ecx, 0x46aee0
call fcn.004338f0
mov eax, dword [edi + 4]
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ebx, [edi + 0x510]
mov dword [esp + 0x20], eax
mov esi, 0x104
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x4196e9
cmp dword [eax - 4], esi
jge 0x41973c
mov edi, dword [eax - 8]
cmp edi, esi
mov dword [esp + 0x1c], edi
jle 0x4196f6
mov esi, edi
push esi
mov ecx, ebx
call fcn.00403db0
test eax, eax
jne 0x419708
mov edi, dword [esp + 0x18]
jmp 0x41973e
mov eax, dword [ebx]
lea ecx, [edi + edi + 2]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x41972d
mov edi, eax
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebx]
push ebp
mov dword [ecx - 8], edi
call fcn.00403f10
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
push 0x104
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, ebx
call fcn.004073c0
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov ebx, dword [ebx]
mov eax, dword [ebx - 0xc]
test eax, eax
jl 0x419787
mov dword [esp + 0x10], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4197a6
mov eax, dword [0x463058]
test ebx, ebx
mov dword [esp + 0x10], eax
jne 0x419798
xor eax, eax
jmp 0x41979b
push ebx
call esi
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00403e10
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.004073c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, dword [0x463058]
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x10]
mov byte [esp + 0x2c], 1
mov ebx, dword [esi - 8]
shl ebx, 1
shr ebx, 1
cmp ebx, 0x7fffffff
ja 0x41981b
mov eax, 0x469790
mov edx, 0x104
sub esi, eax
lea ecx, [ebx + edx - 0x104]
test ecx, ecx
je 0x41980f
mov cx, word [esi + eax]
test cx, cx
je 0x41980f
mov word [eax], cx
add eax, 2
dec edx
jne 0x4197f0
jmp 0x419813
test edx, edx
jne 0x419816
sub eax, 2
mov word [eax], 0
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x469790
call fcn.00419ce0
test eax, eax
je 0x419848
mov eax, dword [0x469bac]
push 0
push 0x469790
push 0x3921
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0x70]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46305c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x419884
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x419884
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4198af
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4198af
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret